Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: use type imports for types/interfaces (#21738)

Kevin Grünebergf9a55935f5ab
diff --git a/apps/studio/components/grid/SupabaseGrid.tsx b/apps/studio/components/grid/SupabaseGrid.tsx
index a2e4d95132c..c8b9c63a569 100644
--- a/apps/studio/components/grid/SupabaseGrid.tsx
+++ b/apps/studio/components/grid/SupabaseGrid.tsx
@@ -23,7 +23,7 @@ import { Grid } from './components/grid'
import Header from './components/header/Header'
import { RowContextMenu } from './components/menu'
import { StoreProvider, useDispatch, useTrackedState } from './store'
-import { SupabaseGridProps } from './types'
+import type { SupabaseGridProps } from './types'
/** Supabase Grid: React component to render database table */
diff --git a/apps/studio/components/grid/SupabaseGrid.utils.ts b/apps/studio/components/grid/SupabaseGrid.utils.ts
index a654246490a..cab71d76a52 100644
--- a/apps/studio/components/grid/SupabaseGrid.utils.ts
+++ b/apps/studio/components/grid/SupabaseGrid.utils.ts
@@ -1,11 +1,11 @@
import AwesomeDebouncePromise from 'awesome-debounce-promise'
import { STORAGE_KEY_PREFIX } from './constants'
import { InitialStateType } from './store/reducers'
-import { Sort, SupabaseGridProps, SupaColumn, SupaTable } from './types'
+import type { Sort, SupabaseGridProps, SupaColumn, SupaTable } from './types'
import type { Dictionary } from 'types'
import { getGridColumns } from './utils/gridColumns'
import { FilterOperatorOptions } from './components/header/filter'
-import { Filter } from 'components/grid/types'
+import type { Filter } from 'components/grid/types'
export function defaultErrorHandler(error: any) {
console.error('Supabase grid error: ', error)
diff --git a/apps/studio/components/grid/components/common/Shortcuts.tsx b/apps/studio/components/grid/components/common/Shortcuts.tsx
index e9d4ba0b56a..4d14f6dae20 100644
--- a/apps/studio/components/grid/components/common/Shortcuts.tsx
+++ b/apps/studio/components/grid/components/common/Shortcuts.tsx
@@ -1,7 +1,7 @@
import * as React from 'react'
import { useTrackedState } from '../../store'
import { useKeyboardShortcuts } from './Hooks'
-import { DataGridHandle } from 'react-data-grid'
+import type { DataGridHandle } from 'react-data-grid'
import { formatClipboardValue, copyToClipboard } from '../../utils'
type ShortcutsProps = {
diff --git a/apps/studio/components/grid/components/editor/BooleanEditor.tsx b/apps/studio/components/grid/components/editor/BooleanEditor.tsx
index 9c7772db08d..3ae4643b42d 100644
--- a/apps/studio/components/grid/components/editor/BooleanEditor.tsx
+++ b/apps/studio/components/grid/components/editor/BooleanEditor.tsx
@@ -1,5 +1,5 @@
import { Select } from 'ui'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
import { useTrackedState } from 'components/grid/store'
interface Props<TRow, TSummaryRow = unknown> extends RenderEditCellProps<TRow, TSummaryRow> {
diff --git a/apps/studio/components/grid/components/editor/DateEditor.tsx b/apps/studio/components/grid/components/editor/DateEditor.tsx
index 02f4e24da04..a32acca76c0 100644
--- a/apps/studio/components/grid/components/editor/DateEditor.tsx
+++ b/apps/studio/components/grid/components/editor/DateEditor.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
function autoFocusAndSelect(input: HTMLInputElement | null) {
input?.focus()
diff --git a/apps/studio/components/grid/components/editor/DateTimeEditor.tsx b/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
index a3ce7605c1c..aa6cfc69cbe 100644
--- a/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
+++ b/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
@@ -1,5 +1,5 @@
-import { ChangeEvent } from 'react'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { ChangeEvent } from 'react'
+import type { RenderEditCellProps } from 'react-data-grid'
import dayjs from 'dayjs'
import customParseFormat from 'dayjs/plugin/customParseFormat'
diff --git a/apps/studio/components/grid/components/editor/JsonEditor.tsx b/apps/studio/components/grid/components/editor/JsonEditor.tsx
index 4423413f064..694bf7e4916 100644
--- a/apps/studio/components/grid/components/editor/JsonEditor.tsx
+++ b/apps/studio/components/grid/components/editor/JsonEditor.tsx
@@ -1,5 +1,5 @@
import * as Tooltip from '@radix-ui/react-tooltip'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
import { useCallback, useState } from 'react'
import { IconMaximize, Popover } from 'ui'
diff --git a/apps/studio/components/grid/components/editor/NumberEditor.tsx b/apps/studio/components/grid/components/editor/NumberEditor.tsx
index c660fb1a5fb..54ee0c7e285 100644
--- a/apps/studio/components/grid/components/editor/NumberEditor.tsx
+++ b/apps/studio/components/grid/components/editor/NumberEditor.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
function autoFocusAndSelect(input: HTMLInputElement | null) {
input?.focus()
diff --git a/apps/studio/components/grid/components/editor/SelectEditor.tsx b/apps/studio/components/grid/components/editor/SelectEditor.tsx
index dcb7705a17f..06828236b06 100644
--- a/apps/studio/components/grid/components/editor/SelectEditor.tsx
+++ b/apps/studio/components/grid/components/editor/SelectEditor.tsx
@@ -1,5 +1,5 @@
import { Select } from 'ui'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
import { useTrackedState } from 'components/grid/store'
diff --git a/apps/studio/components/grid/components/editor/TextEditor.tsx b/apps/studio/components/grid/components/editor/TextEditor.tsx
index e900ca36038..590cd3fd5b0 100644
--- a/apps/studio/components/grid/components/editor/TextEditor.tsx
+++ b/apps/studio/components/grid/components/editor/TextEditor.tsx
@@ -1,6 +1,6 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import { useCallback, useState } from 'react'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
import { Button, IconMaximize, Popover } from 'ui'
import { useTrackedState } from '../../store'
import { BlockKeys, EmptyValue, MonacoEditor, NullValue } from '../common'
diff --git a/apps/studio/components/grid/components/editor/TimeEditor.tsx b/apps/studio/components/grid/components/editor/TimeEditor.tsx
index 21fc1e34011..ba9a34fdcab 100644
--- a/apps/studio/components/grid/components/editor/TimeEditor.tsx
+++ b/apps/studio/components/grid/components/editor/TimeEditor.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
-import { RenderEditCellProps } from 'react-data-grid'
+import type { RenderEditCellProps } from 'react-data-grid'
import dayjs from 'dayjs'
import customParseFormat from 'dayjs/plugin/customParseFormat'
diff --git a/apps/studio/components/grid/components/formatter/BooleanFormatter.tsx b/apps/studio/components/grid/components/formatter/BooleanFormatter.tsx
index 795ae864d70..a7f766806d5 100644
--- a/apps/studio/components/grid/components/formatter/BooleanFormatter.tsx
+++ b/apps/studio/components/grid/components/formatter/BooleanFormatter.tsx
@@ -1,6 +1,6 @@
-import { PropsWithChildren } from 'react'
-import { RenderCellProps } from 'react-data-grid'
-import { SupaRow } from '../../types'
+import type { PropsWithChildren } from 'react'
+import type { RenderCellProps } from 'react-data-grid'
+import type { SupaRow } from '../../types'
import { NullValue } from '../common'
export const BooleanFormatter = (p: PropsWithChildren<RenderCellProps<SupaRow, unknown>>) => {
diff --git a/apps/studio/components/grid/components/formatter/DefaultFormatter.tsx b/apps/studio/components/grid/components/formatter/DefaultFormatter.tsx
index b1e405b139b..325fee62e19 100644
--- a/apps/studio/components/grid/components/formatter/DefaultFormatter.tsx
+++ b/apps/studio/components/grid/components/formatter/DefaultFormatter.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
-import { RenderCellProps } from 'react-data-grid'
-import { SupaRow } from '../../types'
+import type { RenderCellProps } from 'react-data-grid'
+import type { SupaRow } from '../../types'
import { NullValue } from '../common'
import { EmptyValue } from '../common/EmptyValue'
diff --git a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
index 0f7693cdf24..034f4be7a05 100644
--- a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
+++ b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
@@ -1,14 +1,14 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import Link from 'next/link'
-import { PropsWithChildren } from 'react'
-import { RenderCellProps } from 'react-data-grid'
+import type { PropsWithChildren } from 'react'
+import type { RenderCellProps } from 'react-data-grid'
import { Button, IconArrowRight } from 'ui'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useTableQuery } from 'data/tables/table-query'
import { useTablesQuery } from 'data/tables/tables-query'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { SupaRow } from '../../types'
+import type { SupaRow } from '../../types'
import { NullValue } from '../common'
interface Props extends PropsWithChildren<RenderCellProps<SupaRow, unknown>> {
diff --git a/apps/studio/components/grid/components/formatter/JsonFormatter.tsx b/apps/studio/components/grid/components/formatter/JsonFormatter.tsx
index 083baf10a6e..21d5df8828d 100644
--- a/apps/studio/components/grid/components/formatter/JsonFormatter.tsx
+++ b/apps/studio/components/grid/components/formatter/JsonFormatter.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
-import { RenderCellProps } from 'react-data-grid'
-import { SupaRow } from '../../types'
+import type { RenderCellProps } from 'react-data-grid'
+import type { SupaRow } from '../../types'
import { EmptyValue, NullValue } from '../common'
export const JsonFormatter = (p: React.PropsWithChildren<RenderCellProps<SupaRow, unknown>>) => {
diff --git a/apps/studio/components/grid/components/grid/AddColumn.tsx b/apps/studio/components/grid/components/grid/AddColumn.tsx
index 37a94a0daf3..b9cb11ce8d1 100644
--- a/apps/studio/components/grid/components/grid/AddColumn.tsx
+++ b/apps/studio/components/grid/components/grid/AddColumn.tsx
@@ -1,4 +1,4 @@
-import { CalculatedColumn } from 'react-data-grid'
+import type { CalculatedColumn } from 'react-data-grid'
import { Button, IconPlus } from 'ui'
import { ADD_COLUMN_KEY } from '../../constants'
diff --git a/apps/studio/components/grid/components/grid/ColumnHeader.tsx b/apps/studio/components/grid/components/grid/ColumnHeader.tsx
index a0443ce381e..a8fac748b5b 100644
--- a/apps/studio/components/grid/components/grid/ColumnHeader.tsx
+++ b/apps/studio/components/grid/components/grid/ColumnHeader.tsx
@@ -6,7 +6,7 @@ import * as React from 'react'
import { useDrag, useDrop } from 'react-dnd'
import { IconArrowRight, IconKey, IconLink, IconLock } from 'ui'
import { useDispatch, useTrackedState } from '../../store'
-import { ColumnHeaderProps, ColumnType, DragItem, GridForeignKey } from '../../types'
+import type { ColumnHeaderProps, ColumnType, DragItem, GridForeignKey } from '../../types'
import { ColumnMenu } from '../menu'
import { useEffect } from 'react'
diff --git a/apps/studio/components/grid/components/grid/Grid.tsx b/apps/studio/components/grid/components/grid/Grid.tsx
index 3b849262131..dfd01db594a 100644
--- a/apps/studio/components/grid/components/grid/Grid.tsx
+++ b/apps/studio/components/grid/components/grid/Grid.tsx
@@ -16,7 +16,7 @@ import { useForeignKeyConstraintsQuery } from 'data/database/foreign-key-constra
import { useKeyboardShortcuts, useUrlState } from 'hooks'
import { copyToClipboard } from 'lib/helpers'
import { useDispatch, useTrackedState } from '../../store'
-import { Filter, GridProps, SupaRow } from '../../types'
+import type { Filter, GridProps, SupaRow } from '../../types'
import RowRenderer from './RowRenderer'
const rowKeyGetter = (row: SupaRow) => {
diff --git a/apps/studio/components/grid/components/grid/RowRenderer.tsx b/apps/studio/components/grid/components/grid/RowRenderer.tsx
index 12df5f412a2..fe5da9a4cf5 100644
--- a/apps/studio/components/grid/components/grid/RowRenderer.tsx
+++ b/apps/studio/components/grid/components/grid/RowRenderer.tsx
@@ -1,7 +1,7 @@
-import { Key } from 'react'
+import type { Key } from 'react'
import { TriggerEvent, useContextMenu } from 'react-contexify'
import { Row, RenderRowProps } from 'react-data-grid'
-import { SupaRow } from '../../types'
+import type { SupaRow } from '../../types'
import { ROW_CONTEXT_MENU_ID } from '../menu'
export default function RowRenderer(key: Key, props: RenderRowProps<SupaRow>) {
diff --git a/apps/studio/components/grid/components/grid/SelectColumn.tsx b/apps/studio/components/grid/components/grid/SelectColumn.tsx
index f73a610fc20..9148100d51a 100644
--- a/apps/studio/components/grid/components/grid/SelectColumn.tsx
+++ b/apps/studio/components/grid/components/grid/SelectColumn.tsx
@@ -11,7 +11,7 @@ import { Button, IconMaximize2 } from 'ui'
import { SELECT_COLUMN_KEY } from '../../constants'
import { useTrackedState } from '../../store'
-import { SupaRow } from '../../types'
+import type { SupaRow } from '../../types'
export const SelectColumn: CalculatedColumn<any, any> = {
key: SELECT_COLUMN_KEY,
diff --git a/apps/studio/components/grid/components/header/Header.tsx b/apps/studio/components/grid/components/header/Header.tsx
index b4d786f212f..03495120e1a 100644
--- a/apps/studio/components/grid/components/header/Header.tsx
+++ b/apps/studio/components/grid/components/header/Header.tsx
@@ -7,7 +7,7 @@ import { ReactNode, useState } from 'react'
import toast from 'react-hot-toast'
import { useDispatch, useTrackedState } from 'components/grid/store'
-import { Filter, Sort, SupaTable } from 'components/grid/types'
+import type { Filter, Sort, SupaTable } from 'components/grid/types'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'
import { fetchAllTableRows, useTableRowsQuery } from 'data/table-rows/table-rows-query'
diff --git a/apps/studio/components/grid/components/header/RefreshButton.tsx b/apps/studio/components/grid/components/header/RefreshButton.tsx
index 1ebd04dfb72..78e8741e3ba 100644
--- a/apps/studio/components/grid/components/header/RefreshButton.tsx
+++ b/apps/studio/components/grid/components/header/RefreshButton.tsx
@@ -1,11 +1,11 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common/hooks'
-import { SupaTable } from 'components/grid/types'
+import type { SupaTable } from 'components/grid/types'
import { sqlKeys } from 'data/sql/keys'
import { useEffect, useState } from 'react'
import { Button, IconCheck, IconRefreshCw } from 'ui'
-import { SupabaseGridQueue } from '../../constants'
-import { TableLike } from 'hooks/misc/useTable'
+import { SupabaseGridQueue } from '../../queue'
+import type { TableLike } from 'hooks/misc/useTable'
export type RefreshButtonProps = {
table: TableLike | SupaTable
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopover.tsx b/apps/studio/components/grid/components/header/filter/FilterPopover.tsx
index 1a438911474..7aa07a06982 100644
--- a/apps/studio/components/grid/components/header/filter/FilterPopover.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterPopover.tsx
@@ -5,7 +5,7 @@ import { KeyboardEvent, useCallback, useMemo, useState } from 'react'
import { Button, IconFilter, IconPlus, Popover } from 'ui'
import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'
-import { Filter, SupaTable } from 'components/grid/types'
+import type { Filter, SupaTable } from 'components/grid/types'
import { FilterOperatorOptions } from './Filter.constants'
import FilterRow from './FilterRow'
diff --git a/apps/studio/components/grid/components/header/filter/FilterRow.tsx b/apps/studio/components/grid/components/header/filter/FilterRow.tsx
index b35d58b8b0a..bf20b15603c 100644
--- a/apps/studio/components/grid/components/header/filter/FilterRow.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterRow.tsx
@@ -2,7 +2,7 @@ import { KeyboardEvent, memo } from 'react'
import { Button, IconChevronDown, IconX, Input } from 'ui'
import { DropdownControl } from 'components/grid/components/common'
-import { Filter, FilterOperator, SupaTable } from 'components/grid/types'
+import type { Filter, FilterOperator, SupaTable } from 'components/grid/types'
import { FilterOperatorOptions } from './Filter.constants'
export interface FilterRowProps {
diff --git a/apps/studio/components/grid/components/header/sort/SortPopover.tsx b/apps/studio/components/grid/components/header/sort/SortPopover.tsx
index ddba5c7134f..80c3ef223ac 100644
--- a/apps/studio/components/grid/components/header/sort/SortPopover.tsx
+++ b/apps/studio/components/grid/components/header/sort/SortPopover.tsx
@@ -6,7 +6,7 @@ import { Button, IconChevronDown, IconList, Popover } from 'ui'
import { DropdownControl } from 'components/grid/components/common'
import { formatSortURLParams } from 'components/grid/SupabaseGrid.utils'
-import { Sort, SupaTable } from 'components/grid/types'
+import type { Sort, SupaTable } from 'components/grid/types'
import SortRow from './SortRow'
export interface SortPopoverProps {
diff --git a/apps/studio/components/grid/components/header/sort/SortRow.tsx b/apps/studio/components/grid/components/header/sort/SortRow.tsx
index 3ccc908f691..6fdeb0a63c7 100644
--- a/apps/studio/components/grid/components/header/sort/SortRow.tsx
+++ b/apps/studio/components/grid/components/header/sort/SortRow.tsx
@@ -3,7 +3,7 @@ import { memo, useRef } from 'react'
import { useDrag, useDrop } from 'react-dnd'
import { Button, IconMenu, IconX, Toggle } from 'ui'
-import { DragItem, Sort, SupaTable } from 'components/grid/types'
+import type { DragItem, Sort, SupaTable } from 'components/grid/types'
export interface SortRowProps {
table: SupaTable
diff --git a/apps/studio/components/grid/components/menu/ColumnMenu.tsx b/apps/studio/components/grid/components/menu/ColumnMenu.tsx
index 1323e9ba5fc..c669e66025d 100644
--- a/apps/studio/components/grid/components/menu/ColumnMenu.tsx
+++ b/apps/studio/components/grid/components/menu/ColumnMenu.tsx
@@ -1,5 +1,5 @@
import * as Tooltip from '@radix-ui/react-tooltip'
-import { CalculatedColumn } from 'react-data-grid'
+import type { CalculatedColumn } from 'react-data-grid'
import {
Button,
Divider,
diff --git a/apps/studio/components/grid/components/menu/RowContextMenu.tsx b/apps/studio/components/grid/components/menu/RowContextMenu.tsx
index 196417110e9..d2e6a1078b8 100644
--- a/apps/studio/components/grid/components/menu/RowContextMenu.tsx
+++ b/apps/studio/components/grid/components/menu/RowContextMenu.tsx
@@ -1,7 +1,7 @@
import { Item, ItemParams, Menu, PredicateParams, Separator } from 'react-contexify'
import { IconClipboard, IconEdit, IconTrash } from 'ui'
-import { SupaRow } from 'components/grid/types'
+import type { SupaRow } from 'components/grid/types'
import { useCallback } from 'react'
import { useTableEditorStateSnapshot } from 'state/table-editor'
import { useTrackedState } from '../../store'
diff --git a/apps/studio/components/grid/constants.ts b/apps/studio/components/grid/constants.ts
index 6fe451e7931..31559971291 100644
--- a/apps/studio/components/grid/constants.ts
+++ b/apps/studio/components/grid/constants.ts
@@ -1,7 +1,3 @@
-import PQueue from 'p-queue'
-
-export const SupabaseGridQueue = new PQueue({ concurrency: 1 })
-
export const COLUMN_MIN_WIDTH = 100
export const STORAGE_KEY_PREFIX = 'supabase_grid'
diff --git a/apps/studio/components/grid/query/Query.utils.ts b/apps/studio/components/grid/query/Query.utils.ts
index 891af809b7b..fcfd7f05eca 100644
--- a/apps/studio/components/grid/query/Query.utils.ts
+++ b/apps/studio/components/grid/query/Query.utils.ts
@@ -1,5 +1,5 @@
import { ident, literal, format } from '@scaleleap/pg-format'
-import { Filter, QueryPagination, QueryTable, Sort } from '../types'
+import type { Filter, QueryPagination, QueryTable, Sort } from '../types'
import type { Dictionary } from 'types'
export function countQuery(
diff --git a/apps/studio/components/grid/query/QueryAction.ts b/apps/studio/components/grid/query/QueryAction.ts
index 3646e2cb836..cddc6acb0a9 100644
--- a/apps/studio/components/grid/query/QueryAction.ts
+++ b/apps/studio/components/grid/query/QueryAction.ts
@@ -1,4 +1,4 @@
-import { QueryTable } from '../types'
+import type { QueryTable } from '../types'
import type { Dictionary } from 'types'
import { IQueryFilter, QueryFilter } from './QueryFilter'
diff --git a/apps/studio/components/grid/query/QueryFilter.ts b/apps/studio/components/grid/query/QueryFilter.ts
index f92fbd93493..03de13571ac 100644
--- a/apps/studio/components/grid/query/QueryFilter.ts
+++ b/apps/studio/components/grid/query/QueryFilter.ts
@@ -1,4 +1,4 @@
-import { Filter, FilterOperator, QueryTable, Sort } from '../types'
+import type { Filter, FilterOperator, QueryTable, Sort } from '../types'
import type { Dictionary } from 'types'
import { IQueryModifier, QueryModifier } from './QueryModifier'
diff --git a/apps/studio/components/grid/query/QueryModifier.ts b/apps/studio/components/grid/query/QueryModifier.ts
index d9cced581ef..52eb3b7940a 100644
--- a/apps/studio/components/grid/query/QueryModifier.ts
+++ b/apps/studio/components/grid/query/QueryModifier.ts
@@ -1,5 +1,5 @@
import type { Dictionary } from 'types'
-import { Filter, QueryPagination, QueryTable, Sort } from '../types'
+import type { Filter, QueryPagination, QueryTable, Sort } from '../types'
import {
countQuery,
deleteQuery,
diff --git a/apps/studio/components/grid/queue.ts b/apps/studio/components/grid/queue.ts
new file mode 100644
index 00000000000..0eaa984d86c
--- /dev/null
+++ b/apps/studio/components/grid/queue.ts
@@ -0,0 +1,3 @@
+import PQueue from 'p-queue'
+
+export const SupabaseGridQueue = new PQueue({ concurrency: 1 })
diff --git a/apps/studio/components/grid/store/reducers/base.ts b/apps/studio/components/grid/store/reducers/base.ts
index c08c6eb5b67..77877b02c62 100644
--- a/apps/studio/components/grid/store/reducers/base.ts
+++ b/apps/studio/components/grid/store/reducers/base.ts
@@ -1,6 +1,6 @@
import { CalculatedColumn } from 'react-data-grid'
import { TOTAL_ROWS_RESET } from '../../constants'
-import { GridProps, SavedState, SupaTable } from '../../types'
+import type { GridProps, SavedState, SupaTable } from '../../types'
export interface BaseInitialState {
table: SupaTable | null
diff --git a/apps/studio/components/grid/store/reducers/callback.ts b/apps/studio/components/grid/store/reducers/callback.ts
index 30d7b4bb735..5fcb97e4c14 100644
--- a/apps/studio/components/grid/store/reducers/callback.ts
+++ b/apps/studio/components/grid/store/reducers/callback.ts
@@ -1,4 +1,4 @@
-import { SupaRow } from '../../types'
+import type { SupaRow } from '../../types'
export interface CallbackInitialState {
onAddColumn: (() => void) | null
diff --git a/apps/studio/components/grid/store/reducers/column.ts b/apps/studio/components/grid/store/reducers/column.ts
index f6425bf8fee..a97bbd444e2 100644
--- a/apps/studio/components/grid/store/reducers/column.ts
+++ b/apps/studio/components/grid/store/reducers/column.ts
@@ -1,5 +1,5 @@
import update from 'immutability-helper'
-import { CalculatedColumn } from 'react-data-grid'
+import type { CalculatedColumn } from 'react-data-grid'
import { cloneColumn, getInitialGridColumns } from '../../utils'
import { INIT_ACTIONTYPE } from './base'
diff --git a/apps/studio/components/grid/store/reducers/row.ts b/apps/studio/components/grid/store/reducers/row.ts
index 637b4852388..c3d55664626 100644
--- a/apps/studio/components/grid/store/reducers/row.ts
+++ b/apps/studio/components/grid/store/reducers/row.ts
@@ -1,5 +1,5 @@
import { TOTAL_ROWS_INITIAL, TOTAL_ROWS_RESET } from '../../constants'
-import { SupaRow } from '../../types'
+import type { SupaRow } from '../../types'
import { INIT_ACTIONTYPE } from './base'
export interface RowInitialState {
diff --git a/apps/studio/components/grid/utils/column.ts b/apps/studio/components/grid/utils/column.ts
index c0870713639..b826f5fcd9e 100644
--- a/apps/studio/components/grid/utils/column.ts
+++ b/apps/studio/components/grid/utils/column.ts
@@ -1,6 +1,6 @@
import { CalculatedColumn } from 'react-data-grid'
import { ADD_COLUMN_KEY, SELECT_COLUMN_KEY } from '../constants'
-import { SavedState } from '../types'
+import type { SavedState } from '../types'
import { deepClone } from './common'
export function cloneColumn(column: CalculatedColumn<any, any>) {
diff --git a/apps/studio/components/grid/utils/gridColumns.tsx b/apps/studio/components/grid/utils/gridColumns.tsx
index e2c259b2c4d..d04773f0ef1 100644
--- a/apps/studio/components/grid/utils/gridColumns.tsx
+++ b/apps/studio/components/grid/utils/gridColumns.tsx
@@ -1,5 +1,5 @@
import { CalculatedColumn } from 'react-data-grid'
-import { ColumnType, SupaColumn, SupaRow, SupaTable } from '../types'
+import type { ColumnType, SupaColumn, SupaRow, SupaTable } from '../types'
import {
isArrayColumn,
isBoolColumn,
diff --git a/apps/studio/components/grid/utils/types.ts b/apps/studio/components/grid/utils/types.ts
index f39279960b3..1c80442ab52 100644
--- a/apps/studio/components/grid/utils/types.ts
+++ b/apps/studio/components/grid/utils/types.ts
@@ -1,4 +1,4 @@
-import { SupaColumn } from '../types'
+import type { SupaColumn } from '../types'
const NUMERICAL_TYPES = [
'smallint',
diff --git a/apps/studio/components/interfaces/Account/AuditLogs.tsx b/apps/studio/components/interfaces/Account/AuditLogs.tsx
index 93ec9d85a0c..2273b229437 100644
--- a/apps/studio/components/interfaces/Account/AuditLogs.tsx
+++ b/apps/studio/components/interfaces/Account/AuditLogs.tsx
@@ -8,7 +8,7 @@ import Table from 'components/to-be-cleaned/Table'
import AlertError from 'components/ui/AlertError'
import { DatePicker } from 'components/ui/DatePicker'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
-import { AuditLog } from 'data/organizations/organization-audit-logs-query'
+import type { AuditLog } from 'data/organizations/organization-audit-logs-query'
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { useProfileAuditLogsQuery } from 'data/profile/profile-audit-logs-query'
import { useProjectsQuery } from 'data/projects/projects-query'
diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountInformation.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountInformation.tsx
index 543021e3011..c6c940aa975 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AccountInformation.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AccountInformation.tsx
@@ -3,7 +3,7 @@ import Link from 'next/link'
import Panel from 'components/ui/Panel'
import { useSession } from 'lib/auth'
-import { Profile } from 'data/profile/types'
+import type { Profile } from 'data/profile/types'
const AccountInformation = ({ profile }: { profile?: Profile }) => {
const session = useSession()
diff --git a/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx b/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx
index edba22306aa..525acd01e82 100644
--- a/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/ProfileInformation.tsx
@@ -14,9 +14,9 @@ import z from 'zod'
import { FormActions } from 'components/ui/Forms'
import Panel from 'components/ui/Panel'
import { useProfileUpdateMutation } from 'data/profile/profile-update-mutation'
-import { Profile } from 'data/profile/types'
+import type { Profile } from 'data/profile/types'
import { useStore } from 'hooks'
-import { FormSchema } from 'types'
+import type { FormSchema } from 'types'
const FormSchema = z.object({
first_name: z.string().optional(),
diff --git a/apps/studio/components/interfaces/App/CommandMenuWrapper.tsx b/apps/studio/components/interfaces/App/CommandMenuWrapper.tsx
index bd1d47edd5d..ca9daaa5688 100644
--- a/apps/studio/components/interfaces/App/CommandMenuWrapper.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenuWrapper.tsx
@@ -6,7 +6,7 @@ import { CommandMenuProvider } from 'ui'
import { codeBlock } from 'common-tags'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useProjectApiQuery } from 'data/config/project-api-query'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useEntityDefinitionsQuery } from 'data/database/entity-definitions-query'
import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'
import { uuidv4 } from 'lib/helpers'
diff --git a/apps/studio/components/interfaces/AuditLogs/LogDetailsPanel.tsx b/apps/studio/components/interfaces/AuditLogs/LogDetailsPanel.tsx
index 99c53e2f906..473a420974e 100644
--- a/apps/studio/components/interfaces/AuditLogs/LogDetailsPanel.tsx
+++ b/apps/studio/components/interfaces/AuditLogs/LogDetailsPanel.tsx
@@ -1,5 +1,5 @@
import { FormSection, FormSectionContent, FormSectionLabel } from 'components/ui/Forms'
-import { AuditLog } from 'data/organizations/organization-audit-logs-query'
+import type { AuditLog } from 'data/organizations/organization-audit-logs-query'
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { useProjectsQuery } from 'data/projects/projects-query'
import dayjs from 'dayjs'
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
index fa318e3075e..937b1535029 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
@@ -5,7 +5,7 @@ import ReactMarkdown from 'react-markdown'
import { Button, IconEye, IconEyeOff, Input, InputNumber, Listbox, Toggle } from 'ui'
import { BASE_PATH } from 'lib/constants'
-import { Enum } from './AuthProvidersForm.types'
+import type { Enum } from './AuthProvidersForm.types'
interface FormFieldProps {
name: string
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index 0dddeec961b..e9cf4695643 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -5,13 +5,13 @@ import ReactMarkdown from 'react-markdown'
import { Alert, Button, Collapsible, Form, IconCheck, IconChevronUp, Input } from 'ui'
import { useParams } from 'common'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'
import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'
import { useCheckPermissions, useStore } from 'hooks'
import { BASE_PATH } from 'lib/constants'
import { ProviderCollapsibleClasses } from './AuthProvidersForm.constants'
-import { Provider } from './AuthProvidersForm.types'
+import type { Provider } from './AuthProvidersForm.types'
import FormField from './FormField'
export interface ProviderFormProps {
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
index 0b3a5bf69f0..4b76b63eb1f 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
@@ -19,7 +19,7 @@ import { FormActions, FormSection, FormSectionContent, FormSectionLabel } from '
import InformationBox from 'components/ui/InformationBox'
import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'
import { useCheckPermissions } from 'hooks'
-import { FormSchema } from 'types'
+import type { FormSchema } from 'types'
interface TemplateEditorProps {
template: FormSchema
diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyEditorPanel.utils.ts b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyEditorPanel.utils.ts
index adb8328a37b..d15b78a73d4 100644
--- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyEditorPanel.utils.ts
+++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyEditorPanel.utils.ts
@@ -1,4 +1,4 @@
-import { PostgresPolicy } from '@supabase/postgres-meta'
+import type { PostgresPolicy } from '@supabase/postgres-meta'
import { Message } from 'ai/react'
import { uuidv4 } from 'lib/helpers'
diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx
index 26ff309e444..2b3ea1336d9 100644
--- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/AIPolicyHeader.tsx
@@ -1,4 +1,4 @@
-import { PostgresPolicy } from '@supabase/postgres-meta'
+import type { PostgresPolicy } from '@supabase/postgres-meta'
import clsx from 'clsx'
import { PanelLeftClose, PanelRightClose, X } from 'lucide-react'
import {
diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetails.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetails.tsx
index a911d69967f..e5148c1faa9 100644
--- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetails.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/PolicyDetails.tsx
@@ -1,4 +1,4 @@
-import { PostgresPolicy } from '@supabase/postgres-meta'
+import type { PostgresPolicy } from '@supabase/postgres-meta'
import {
CollapsibleContent_Shadcn_,
CollapsibleTrigger_Shadcn_,
diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx
index 89d88937ca8..fcb02298024 100644
--- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx
@@ -1,4 +1,4 @@
-import { PostgresPolicy } from '@supabase/postgres-meta'
+import type { PostgresPolicy } from '@supabase/postgres-meta'
import { useQueryClient } from '@tanstack/react-query'
import { useChat } from 'ai/react'
import { useParams, useTelemetryProps } from 'common'
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyReview.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyReview.tsx
index 1d6e4820392..a9f8a75ee9c 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyReview.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyReview.tsx
@@ -2,7 +2,7 @@ import SqlEditor from 'components/ui/SqlEditor'
import { isEmpty, noop } from 'lodash'
import { useState } from 'react'
import { Button, Modal } from 'ui'
-import { PolicyForReview } from './Policies.types'
+import type { PolicyForReview } from './Policies.types'
interface PolicyReviewProps {
policy: PolicyForReview
diff --git a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts
index 8d33cbaf2a9..b69ad2be5a1 100644
--- a/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts
+++ b/apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts
@@ -1,4 +1,4 @@
-import { components } from 'data/api'
+import type { components } from 'data/api'
type AuthConfig = components['schemas']['GoTrueConfigResponse']
diff --git a/apps/studio/components/interfaces/Auth/Users/UserDropdown.tsx b/apps/studio/components/interfaces/Auth/Users/UserDropdown.tsx
index 1ec734d5fcd..82e1b24415f 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserDropdown.tsx
@@ -8,7 +8,7 @@ import { useUserDeleteMutation } from 'data/auth/user-delete-mutation'
import { useUserResetPasswordMutation } from 'data/auth/user-reset-password-mutation'
import { useUserSendMagicLinkMutation } from 'data/auth/user-send-magic-link-mutation'
import { useUserSendOTPMutation } from 'data/auth/user-send-otp-mutation'
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
import { useStore } from 'hooks'
import { timeout } from 'lib/helpers'
import {
diff --git a/apps/studio/components/interfaces/Auth/Users/UserListItem.utils.ts b/apps/studio/components/interfaces/Auth/Users/UserListItem.utils.ts
index cf48113df31..a2e1d1d34d8 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserListItem.utils.ts
+++ b/apps/studio/components/interfaces/Auth/Users/UserListItem.utils.ts
@@ -1,4 +1,4 @@
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
export function getDisplayName(user: User, fallback = '-'): string {
const {
diff --git a/apps/studio/components/interfaces/Auth/Users/UserSidePanel.tsx b/apps/studio/components/interfaces/Auth/Users/UserSidePanel.tsx
index 5ade2553bb0..441b4969588 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserSidePanel.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserSidePanel.tsx
@@ -1,5 +1,5 @@
import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
import { SidePanel } from 'ui'
interface UsersSidePanelProps {
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersList.tsx b/apps/studio/components/interfaces/Auth/Users/UsersList.tsx
index bc625873e3c..1c1d5d5b8f3 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersList.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersList.tsx
@@ -2,9 +2,9 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import Table from 'components/to-be-cleaned/Table'
import AlertError from 'components/ui/AlertError'
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
import { useCheckPermissions } from 'hooks'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { IconAlertCircle } from 'ui'
import UserListItem from './UsersListItem'
import UsersListItemSkeleton from './UsersListItemSkeleton'
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx b/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx
index 3841efc6be1..1d300bcd92e 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersListItem.tsx
@@ -3,7 +3,7 @@ import { Badge } from 'ui'
import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'
import Table from 'components/to-be-cleaned/Table'
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
import UserDropdown from './UserDropdown'
import { getDisplayName } from './UserListItem.utils'
diff --git a/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx b/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx
index 47dc6839423..fec7938f1b3 100644
--- a/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx
+++ b/apps/studio/components/interfaces/Billing/NoProjectsOnPaidOrgInfo.tsx
@@ -4,7 +4,7 @@ import { IconInfo } from 'ui'
import InformationBox from 'components/ui/InformationBox'
import { useProjectsQuery } from 'data/projects/projects-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
-import { Organization } from 'types'
+import type { Organization } from 'types'
interface NoProjectsOnPaidOrgInfoProps {
organization?: Organization
diff --git a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts
index f39ae7270f8..24ffa175b3a 100644
--- a/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts
+++ b/apps/studio/components/interfaces/Billing/Subscription/Subscription.utils.ts
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'lib/constants'
-import { OrgSubscription, ProjectSelectedAddon } from 'data/subscriptions/types'
+import type { OrgSubscription, ProjectSelectedAddon } from 'data/subscriptions/types'
export const getAddons = (selectedAddons: ProjectSelectedAddon[]) => {
const computeInstance = selectedAddons.find((addon) => addon.type === 'compute_instance')
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
index d60b2a11144..0e5690f8c9e 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
@@ -7,8 +7,8 @@ import { useInView } from 'react-intersection-observer'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import { useBranchQuery } from 'data/branches/branch-query'
-import { Branch } from 'data/branches/branches-query'
-import { GitHubPullRequest } from 'data/integrations/github-pull-requests-query'
+import type { Branch } from 'data/branches/branches-query'
+import type { GitHubPullRequest } from 'data/integrations/github-pull-requests-query'
import {
Badge,
Button,
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx b/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx
index 091c2a6bc70..247e91f0037 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx
@@ -1,5 +1,5 @@
import { WarningIcon } from 'components/ui/Icons'
-import { BranchData } from 'data/branches/branch-query'
+import type { BranchData } from 'data/branches/branch-query'
import { ClockIcon } from 'lucide-react'
import { Badge } from 'ui'
diff --git a/apps/studio/components/interfaces/BranchManagement/Overview.tsx b/apps/studio/components/interfaces/BranchManagement/Overview.tsx
index 1de91499180..01dd04d28a6 100644
--- a/apps/studio/components/interfaces/BranchManagement/Overview.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/Overview.tsx
@@ -1,8 +1,8 @@
import { noop } from 'lodash'
import { Button, IconChevronRight } from 'ui'
-import { Branch } from 'data/branches/branches-query'
-import { GitHubPullRequest } from 'data/integrations/github-pull-requests-query'
+import type { Branch } from 'data/branches/branches-query'
+import type { GitHubPullRequest } from 'data/integrations/github-pull-requests-query'
import { BranchLoader, BranchManagementSection, BranchRow, BranchRowLoader } from './BranchPanels'
import { PreviewBranchesEmptyState } from './EmptyStates'
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
index e95775b7c1f..007c84f945a 100644
--- a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
@@ -3,7 +3,7 @@ import dayjs from 'dayjs'
import { Badge, Button, IconDownload } from 'ui'
import { useBackupDownloadMutation } from 'data/database/backup-download-mutation'
-import { DatabaseBackup } from 'data/database/backups-query'
+import type { DatabaseBackup } from 'data/database/backups-query'
import { useCheckPermissions } from 'hooks'
interface BackupItemProps {
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITR.utils.ts b/apps/studio/components/interfaces/Database/Backups/PITR/PITR.utils.ts
index a380e8c86d4..c885e6fe5ee 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITR.utils.ts
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITR.utils.ts
@@ -1,7 +1,7 @@
import dayjs from 'dayjs'
import { ALL_TIMEZONES } from './PITR.constants'
-import { Time } from './PITR.types'
-import { ProjectSelectedAddon } from 'data/subscriptions/types'
+import type { Time } from './PITR.types'
+import type { ProjectSelectedAddon } from 'data/subscriptions/types'
export const getPITRRetentionDuration = (addons: ProjectSelectedAddon[]) => {
const pitrAddon = addons.find((addon) => addon.type === 'pitr')
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
index 2a92aa8409e..befe3e3f0ed 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx
@@ -28,7 +28,7 @@ import { useReadReplicasQuery } from 'data/read-replicas/replicas-query'
import { PROJECT_STATUS } from 'lib/constants'
import Link from 'next/link'
import BackupsEmpty from '../BackupsEmpty'
-import { Timezone } from './PITR.types'
+import type { Timezone } from './PITR.types'
import {
constrainDateToRange,
formatNumberToTwoDigits,
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
index ca0a413309e..a41a1437a6f 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
@@ -8,7 +8,7 @@ import { FormPanel } from 'components/ui/Forms'
import { useBackupsQuery } from 'data/database/backups-query'
import { useReadReplicasQuery } from 'data/read-replicas/replicas-query'
import { useCheckPermissions } from 'hooks'
-import { Timezone } from './PITR.types'
+import type { Timezone } from './PITR.types'
import { TimezoneSelection } from './TimezoneSelection'
interface PITRStatusProps {
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
index f5ea08bd3d5..afae7774c37 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
@@ -4,7 +4,7 @@ import { isNaN, noop } from 'lodash'
import { ChangeEvent, useEffect, useState } from 'react'
import { IconClock } from 'ui'
-import { Time } from './PITR.types'
+import type { Time } from './PITR.types'
import { formatNumberToTwoDigits, formatTimeToTimeString } from './PITR.utils'
// [Joshen] This is trying to do the same thing as TimeSplitInput.tsx
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
index 1b71f9414b6..34048f65597 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
@@ -16,7 +16,7 @@ import {
import { CheckIcon, ChevronsUpDown } from 'lucide-react'
import { ALL_TIMEZONES } from './PITR.constants'
-import { Timezone } from './PITR.types'
+import type { Timezone } from './PITR.types'
interface TimezoneSelectionProps {
selectedTimezone: Timezone
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
index 620183f6bd4..6cef8de572b 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
@@ -26,7 +26,7 @@ import * as z from 'zod'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useEnumeratedTypeUpdateMutation } from 'data/enumerated-types/enumerated-type-update-mutation'
-import { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
+import type { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
import { DragDropContext, Droppable, DroppableProvided } from 'react-beautiful-dnd'
import EnumeratedTypeValueRow from './EnumeratedTypeValueRow'
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx
index f368883f318..1fa4c50e6c8 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx
@@ -15,7 +15,7 @@ import { useDatabaseFunctionCreateMutation } from 'data/database-functions/datab
import { useDatabaseFunctionUpdateMutation } from 'data/database-functions/database-functions-update-mutation'
import { useSchemasQuery } from 'data/database/schemas-query'
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { convertArgumentTypes, convertConfigParams, hasWhitespace } from './Functions.utils'
// [Refactor] Remove local state, just use the Form component
diff --git a/apps/studio/components/interfaces/Database/Functions/Functions.utils.ts b/apps/studio/components/interfaces/Database/Functions/Functions.utils.ts
index ea3b07a4131..f342c295a78 100644
--- a/apps/studio/components/interfaces/Database/Functions/Functions.utils.ts
+++ b/apps/studio/components/interfaces/Database/Functions/Functions.utils.ts
@@ -1,4 +1,4 @@
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { isEmpty } from 'lodash'
/**
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
index 734c7d54ae4..4fb98099095 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
@@ -1,5 +1,5 @@
import * as Tooltip from '@radix-ui/react-tooltip'
-import { PostgresFunction } from '@supabase/postgres-meta'
+import type { PostgresFunction } from '@supabase/postgres-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { noop, partition } from 'lodash'
import { useState } from 'react'
diff --git a/apps/studio/components/interfaces/Database/Hooks/DeleteHookModal.tsx b/apps/studio/components/interfaces/Database/Hooks/DeleteHookModal.tsx
index 115884584e4..31768e8066d 100644
--- a/apps/studio/components/interfaces/Database/Hooks/DeleteHookModal.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/DeleteHookModal.tsx
@@ -1,4 +1,4 @@
-import { PostgresTrigger } from '@supabase/postgres-meta'
+import type { PostgresTrigger } from '@supabase/postgres-meta'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import TextConfirmModal from 'ui-patterns/Dialogs/TextConfirmModal'
diff --git a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
index 47dc88148cf..a146b94780d 100644
--- a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
@@ -1,4 +1,4 @@
-import { PostgresTable, PostgresTrigger } from '@supabase/postgres-meta'
+import type { PostgresTable, PostgresTrigger } from '@supabase/postgres-meta'
import Image from 'next/legacy/image'
import { MutableRefObject, useEffect, useMemo, useRef, useState } from 'react'
diff --git a/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts b/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts
index 16718b688ca..42d9d4e6250 100644
--- a/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts
+++ b/apps/studio/components/interfaces/Database/Privileges/Privileges.utils.ts
@@ -6,7 +6,7 @@ import {
ColumnPrivilegesGrant,
grantColumnPrivileges,
} from 'data/privileges/column-privileges-grant-mutation'
-import { ColumnPrivilege } from 'data/privileges/column-privileges-query'
+import type { ColumnPrivilege } from 'data/privileges/column-privileges-query'
import {
ColumnPrivilegesRevoke,
revokeColumnPrivileges,
@@ -15,7 +15,7 @@ import {
TablePrivilegesGrant,
grantTablePrivileges,
} from 'data/privileges/table-privileges-grant-mutation'
-import { TablePrivilege } from 'data/privileges/table-privileges-query'
+import type { TablePrivilege } from 'data/privileges/table-privileges-query'
import {
TablePrivilegesRevoke,
revokeTablePrivileges,
diff --git a/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx b/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx
index 268b497597f..6d425a25f82 100644
--- a/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx
+++ b/apps/studio/components/interfaces/Database/Privileges/PrivilegesHead.tsx
@@ -1,4 +1,4 @@
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import SchemaSelector from 'components/ui/SchemaSelector'
import {
diff --git a/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx b/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx
index 5eb8543e471..2ecd97f29d3 100644
--- a/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx
+++ b/apps/studio/components/interfaces/Database/Privileges/PrivilegesTable.tsx
@@ -1,5 +1,5 @@
import Table from 'components/to-be-cleaned/Table'
-import { ColumnPrivilege } from 'data/privileges/column-privileges-query'
+import type { ColumnPrivilege } from 'data/privileges/column-privileges-query'
import { Switch } from 'ui'
import {
ALL_PRIVILEGE_TYPES,
diff --git a/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx b/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx
index 7990e809ae3..efb5dfdd93c 100644
--- a/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx
+++ b/apps/studio/components/interfaces/Database/Roles/DeleteRoleModal.tsx
@@ -1,4 +1,4 @@
-import { PostgresRole } from '@supabase/postgres-meta'
+import type { PostgresRole } from '@supabase/postgres-meta'
import toast from 'react-hot-toast'
import { Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
index 5ef3e1f2af0..a138fd08ee9 100644
--- a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
+++ b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
@@ -1,5 +1,5 @@
import * as Tooltip from '@radix-ui/react-tooltip'
-import { PostgresRole } from '@supabase/postgres-meta'
+import type { PostgresRole } from '@supabase/postgres-meta'
import { useState } from 'react'
import toast from 'react-hot-toast'
import {
diff --git a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
index ea316a695ac..d647e2c85de 100644
--- a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
@@ -13,7 +13,7 @@ import ReactFlow, {
useReactFlow,
} from 'reactflow'
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useTablesQuery } from 'data/tables/tables-query'
import { useTheme } from 'next-themes'
diff --git a/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
index 32530d157b1..680da26e4c5 100644
--- a/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
@@ -9,7 +9,7 @@ import { Button, IconChevronDown, IconHelpCircle, IconTerminal, SidePanel } from
import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'
import InformationBox from 'components/ui/InformationBox'
import SqlEditor from 'components/ui/SqlEditor'
-import { DatabaseFunction } from 'data/database-functions/database-functions-query'
+import type { DatabaseFunction } from 'data/database-functions/database-functions-query'
export interface ChooseFunctionFormProps {
triggerFunctions: DatabaseFunction[]
diff --git a/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
index 824f19a46be..1a4722645b0 100644
--- a/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx
@@ -5,7 +5,7 @@ import { createContext, useContext, useEffect, useState } from 'react'
import toast from 'react-hot-toast'
import SVG from 'react-inlinesvg'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
import FormEmptyBox from 'components/ui/FormBoxEmpty'
diff --git a/apps/studio/components/interfaces/Database/Wrappers/DeleteWrapperModal.tsx b/apps/studio/components/interfaces/Database/Wrappers/DeleteWrapperModal.tsx
index a6ab8041e05..37b62bbef6f 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/DeleteWrapperModal.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/DeleteWrapperModal.tsx
@@ -1,6 +1,6 @@
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useFDWDeleteMutation } from 'data/fdw/fdw-delete-mutation'
-import { FDW } from 'data/fdw/fdws-query'
+import type { FDW } from 'data/fdw/fdws-query'
import { useStore } from 'hooks'
import { Modal } from 'ui'
import { WRAPPERS } from './Wrappers.constants'
diff --git a/apps/studio/components/interfaces/Database/Wrappers/InputField.tsx b/apps/studio/components/interfaces/Database/Wrappers/InputField.tsx
index b85d46da7ce..500b950c9a2 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/InputField.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/InputField.tsx
@@ -2,7 +2,7 @@ import Link from 'next/link'
import { useState } from 'react'
import { Button, IconEye, IconEyeOff, IconHelpCircle, IconLoader, Input } from 'ui'
-import { ServerOption } from './Wrappers.types'
+import type { ServerOption } from './Wrappers.types'
interface InputFieldProps {
option: ServerOption
diff --git a/apps/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx b/apps/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
index 9d7c4b9f766..dbb2e3e816a 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx
@@ -6,9 +6,9 @@ import Link from 'next/link'
import { Button, Collapsible, IconChevronUp, IconEdit, IconExternalLink, IconTrash } from 'ui'
import { useParams } from 'common/hooks'
-import { FDW } from 'data/fdw/fdws-query'
+import type { FDW } from 'data/fdw/fdws-query'
import { useCheckPermissions } from 'hooks'
-import { WrapperMeta } from './Wrappers.types'
+import type { WrapperMeta } from './Wrappers.types'
interface WrapperRowProps {
wrappers: FDW[]
diff --git a/apps/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx b/apps/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
index cc335f5a88a..997cff04d64 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx
@@ -6,7 +6,7 @@ import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import { useSchemasQuery } from 'data/database/schemas-query'
import { Form, IconDatabase, IconPlus, Input, Listbox, Modal, SidePanel } from 'ui'
import WrapperDynamicColumns from './WrapperDynamicColumns'
-import { Table, TableOption } from './Wrappers.types'
+import type { Table, TableOption } from './Wrappers.types'
import { makeValidateRequired } from './Wrappers.utils'
export type WrapperTableEditorProps = {
diff --git a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
index 6dbc3a8b2af..cb67d097fb9 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
+++ b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
@@ -1,5 +1,5 @@
import { BASE_PATH } from 'lib/constants'
-import { WrapperMeta } from './Wrappers.types'
+import type { WrapperMeta } from './Wrappers.types'
export const WRAPPER_HANDLERS = {
STRIPE: 'stripe_fdw_handler',
diff --git a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts
index 06e49f0beb7..80ceb01f40c 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts
+++ b/apps/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts
@@ -1,5 +1,5 @@
import { WRAPPER_HANDLERS } from './Wrappers.constants'
-import { WrapperMeta } from './Wrappers.types'
+import type { WrapperMeta } from './Wrappers.types'
export const makeValidateRequired = (options: { name: string; required: boolean }[]) => {
const requiredOptionsSet = new Set(
diff --git a/apps/studio/components/interfaces/Docs/Authentication.tsx b/apps/studio/components/interfaces/Docs/Authentication.tsx
index 296584ac070..d3a44692039 100644
--- a/apps/studio/components/interfaces/Docs/Authentication.tsx
+++ b/apps/studio/components/interfaces/Docs/Authentication.tsx
@@ -1,6 +1,6 @@
import Link from 'next/link'
-import { AutoApiService } from 'data/config/project-api-query'
+import type { AutoApiService } from 'data/config/project-api-query'
import CodeSnippet from './CodeSnippet'
import Snippets from './Snippets'
diff --git a/apps/studio/components/interfaces/Docs/Introduction.tsx b/apps/studio/components/interfaces/Docs/Introduction.tsx
index fcdd3f48e13..579e13dec51 100644
--- a/apps/studio/components/interfaces/Docs/Introduction.tsx
+++ b/apps/studio/components/interfaces/Docs/Introduction.tsx
@@ -1,4 +1,4 @@
-import { AutoApiService } from 'data/config/project-api-query'
+import type { AutoApiService } from 'data/config/project-api-query'
import Snippets from 'components/interfaces/Docs/Snippets'
import CodeSnippet from './CodeSnippet'
diff --git a/apps/studio/components/interfaces/Docs/LangSelector.tsx b/apps/studio/components/interfaces/Docs/LangSelector.tsx
index 290bf97097e..64cfd60e1da 100644
--- a/apps/studio/components/interfaces/Docs/LangSelector.tsx
+++ b/apps/studio/components/interfaces/Docs/LangSelector.tsx
@@ -9,7 +9,7 @@ import {
IconKey,
} from 'ui'
-import { showApiKey } from 'components/interfaces/Docs/Docs.types'
+import type { showApiKey } from 'components/interfaces/Docs/Docs.types'
const DEFAULT_KEY = { name: 'hide', key: 'SUPABASE_KEY' }
diff --git a/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx b/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx
index 7184b7e8002..a1006a97540 100644
--- a/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx
+++ b/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx
@@ -1,7 +1,7 @@
import Link from 'next/link'
import { useRouter } from 'next/router'
-import { AutoApiService } from 'data/config/project-api-query'
+import type { AutoApiService } from 'data/config/project-api-query'
import { makeRandomString } from 'lib/helpers'
import CodeSnippet from '../CodeSnippet'
import Snippets from '../Snippets'
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
index 19ee0b99205..222d25d9e2f 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
@@ -1,5 +1,5 @@
import Table from 'components/to-be-cleaned/Table'
-import { ProjectSecret } from 'data/secrets/secrets-query'
+import type { ProjectSecret } from 'data/secrets/secrets-query'
import { Button, IconTrash } from 'ui'
interface EdgeFunctionSecretProps {
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
index fc600816fe6..0d882a09d21 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
@@ -8,7 +8,7 @@ import { useParams } from 'common/hooks'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import Table from 'components/to-be-cleaned/Table'
import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'
-import { EdgeFunctionsResponse } from 'data/edge-functions/edge-functions-query'
+import type { EdgeFunctionsResponse } from 'data/edge-functions/edge-functions-query'
interface EdgeFunctionsListItemProps {
function: EdgeFunctionsResponse
diff --git a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
index 0249d62f150..ce184e3625b 100644
--- a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
+++ b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
@@ -8,7 +8,7 @@ import CommandRender from 'components/interfaces/Functions/CommandRender'
import { useAccessTokensQuery } from 'data/access-tokens/access-tokens-query'
import { useProjectApiQuery } from 'data/config/project-api-query'
import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'
-import { Commands } from './Functions.types'
+import type { Commands } from './Functions.types'
interface TerminalInstructionsProps {
closable?: boolean
diff --git a/apps/studio/components/interfaces/Home/Connect/ConnectTabContent.tsx b/apps/studio/components/interfaces/Home/Connect/ConnectTabContent.tsx
index bf47d10edff..6561f818160 100644
--- a/apps/studio/components/interfaces/Home/Connect/ConnectTabContent.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/ConnectTabContent.tsx
@@ -6,7 +6,7 @@ import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useProjectSettingsQuery } from 'data/config/project-settings-query'
import { usePoolingConfigurationQuery } from 'data/database/pooling-configuration-query'
import { pluckObjectFields } from 'lib/helpers'
-import { projectKeys } from './Connect.types'
+import type { projectKeys } from './Connect.types'
interface ConnectContentTabProps {
projectKeys: projectKeys
diff --git a/apps/studio/components/interfaces/Home/Connect/content/astro/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/astro/supabasejs/content.tsx
index 338da090d58..aecccde06e9 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/astro/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/astro/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/drizzle/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/drizzle/content.tsx
index c862728307e..9c6a34acf27 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/drizzle/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/drizzle/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx
index 56e535f80c3..820bac7fe5f 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/exporeactnative/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/nextjs/app/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/nextjs/app/supabasejs/content.tsx
index cb9e66fe3c6..077a7dfc9b5 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/nextjs/app/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/nextjs/app/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/nextjs/pages/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/nextjs/pages/supabasejs/content.tsx
index cf0d13d153a..4131fd593cf 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/nextjs/pages/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/nextjs/pages/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/nuxt/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/nuxt/supabasejs/content.tsx
index c42375e073e..137f60e09c1 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/nuxt/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/nuxt/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/prisma/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/prisma/content.tsx
index 1295875560a..8ec64311300 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/prisma/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/prisma/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx
index dbd7d2fdae9..3a6e6e6a2f1 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/react/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/refine/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/refine/supabasejs/content.tsx
index 1454a0c4692..1d56893b856 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/refine/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/refine/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/remix/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/remix/supabasejs/content.tsx
index d584a944daf..80e12a0a088 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/remix/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/remix/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/solidjs/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/solidjs/supabasejs/content.tsx
index a0e2c647066..54f2ca88ca6 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/solidjs/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/solidjs/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/sveltekit/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/sveltekit/supabasejs/content.tsx
index 6307039c60e..7a6c11670ce 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/sveltekit/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/sveltekit/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/Connect/content/vuejs/supabasejs/content.tsx b/apps/studio/components/interfaces/Home/Connect/content/vuejs/supabasejs/content.tsx
index 0bf5c3b5f4b..a2765379e87 100644
--- a/apps/studio/components/interfaces/Home/Connect/content/vuejs/supabasejs/content.tsx
+++ b/apps/studio/components/interfaces/Home/Connect/content/vuejs/supabasejs/content.tsx
@@ -1,4 +1,4 @@
-import { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
+import type { ContentFileProps } from 'components/interfaces/Home/Connect/Connect.types'
import {
ConnectTabs,
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
index 490b8616805..36741d0d1b0 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
@@ -1,9 +1,9 @@
import { GitBranch, Github } from 'lucide-react'
import CardButton from 'components/ui/CardButton'
-import { IntegrationProjectConnection } from 'data/integrations/integrations.types'
-import { ProjectInfo } from 'data/projects/projects-query'
-import { ResourceWarning } from 'data/usage/resource-warnings-query'
+import type { IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type { ProjectInfo } from 'data/projects/projects-query'
+import type { ResourceWarning } from 'data/usage/resource-warnings-query'
import { BASE_PATH } from 'lib/constants'
import { inferProjectStatus } from './ProjectCard.utils'
import { ProjectCardStatus } from './ProjectCardStatus'
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.utils.ts b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.utils.ts
index 99dbf03c183..26b01d598e2 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.utils.ts
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.utils.ts
@@ -1,4 +1,4 @@
-import { ProjectInfo } from 'data/projects/projects-query'
+import type { ProjectInfo } from 'data/projects/projects-query'
import { PROJECT_STATUS } from 'lib/constants'
export const inferProjectStatus = (project: ProjectInfo) => {
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
index d937c8d1071..65fa35bf8ba 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
@@ -1,7 +1,7 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import { RESOURCE_WARNING_MESSAGES } from 'components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.constants'
import { getWarningContent } from 'components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils'
-import { ResourceWarning } from 'data/usage/resource-warnings-query'
+import type { ResourceWarning } from 'data/usage/resource-warnings-query'
import { AlertTriangle, Info, RefreshCcw } from 'lucide-react'
import { Alert_Shadcn_, AlertTitle_Shadcn_, cn, IconPauseCircle } from 'ui'
import { InferredProjectStatus } from './ProjectCard.utils'
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx
index 5d3cc9b5b19..758c23f4a04 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx
@@ -16,7 +16,7 @@ import { ResourceWarning, useResourceWarningsQuery } from 'data/usage/resource-w
import { useSelectedOrganization } from 'hooks'
import { IS_PLATFORM } from 'lib/constants'
import { makeRandomString } from 'lib/helpers'
-import { Organization, ResponseError } from 'types'
+import type { Organization, ResponseError } from 'types'
import { Button, IconPlus } from 'ui'
import ProjectCard from './ProjectCard'
import ShimmeringCard from './ShimmeringCard'
diff --git a/apps/studio/components/interfaces/Home/ProjectUsage.tsx b/apps/studio/components/interfaces/Home/ProjectUsage.tsx
index fd0ad92a724..cdd7def1fe3 100644
--- a/apps/studio/components/interfaces/Home/ProjectUsage.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectUsage.tsx
@@ -4,7 +4,7 @@ import sumBy from 'lodash/sumBy'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
-import { ChartIntervals } from 'types'
+import type { ChartIntervals } from 'types'
import {
Button,
DropdownMenu,
diff --git a/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx b/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx
index 14ea02bebf9..3c3f1fd8474 100644
--- a/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx
+++ b/apps/studio/components/interfaces/Integrations/IntegrationConnection.tsx
@@ -25,7 +25,7 @@ import {
} from 'components/interfaces/Integrations/IntegrationPanels'
import { WarningIcon } from 'components/ui/Icons'
import { useIntegrationsVercelConnectionSyncEnvsMutation } from 'data/integrations/integrations-vercel-connection-sync-envs-mutation'
-import { IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type { IntegrationProjectConnection } from 'data/integrations/integrations.types'
import { useProjectsQuery } from 'data/projects/projects-query'
import { useStore } from 'hooks'
diff --git a/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx b/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx
index 58caf455aaa..f72e7bceeef 100644
--- a/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx
+++ b/apps/studio/components/interfaces/Integrations/IntegrationPanels.tsx
@@ -3,7 +3,10 @@ import Image from 'next/legacy/image'
import React from 'react'
import { Markdown } from 'components/interfaces/Markdown'
-import { Integration, IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type {
+ Integration,
+ IntegrationProjectConnection,
+} from 'data/integrations/integrations.types'
import { useProjectsQuery } from 'data/projects/projects-query'
import { BASE_PATH } from 'lib/constants'
import { getIntegrationConfigurationUrl } from 'lib/integration-utils'
diff --git a/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx b/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx
index f706b5f120c..e4ca69f3e94 100644
--- a/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx
+++ b/apps/studio/components/interfaces/Integrations/OrganizationPicker.tsx
@@ -1,10 +1,10 @@
import { getHasInstalledObject } from 'components/layouts/IntegrationsLayout/Integrations.utils'
import { useIntegrationsQuery } from 'data/integrations/integrations-query'
-import { IntegrationName } from 'data/integrations/integrations.types'
+import type { IntegrationName } from 'data/integrations/integrations.types'
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { useMemo, useRef, useState } from 'react'
-import { Organization } from 'types'
+import type { Organization } from 'types'
import {
Badge,
Button,
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
index ee1684e5c4e..5943872e241 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
@@ -1,8 +1,8 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import Link from 'next/link'
-import { OrgSubscription } from 'data/subscriptions/types'
-import { OrgUsageResponse } from 'data/usage/org-usage-query'
+import type { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgUsageResponse } from 'data/usage/org-usage-query'
import { Button, IconChevronRight, IconPieChart } from 'ui'
import { Metric, USAGE_APPROACHING_THRESHOLD } from './BillingBreakdown.constants'
import { billingMetricUnit, formatUsage } from '../helpers'
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx
index 2746c44e686..54e89157e60 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx
@@ -1,7 +1,7 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import Link from 'next/link'
-import { OrgUsageResponse } from 'data/usage/org-usage-query'
+import type { OrgUsageResponse } from 'data/usage/org-usage-query'
import { IconChevronRight, IconPieChart } from 'ui'
import { Metric } from './BillingBreakdown.constants'
import { formatUsage } from '../helpers'
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/ChangePaymentMethodModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/ChangePaymentMethodModal.tsx
index 7b4485b01a8..95247b0905c 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/ChangePaymentMethodModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/ChangePaymentMethodModal.tsx
@@ -1,8 +1,8 @@
import { useParams } from 'common'
-import { OrganizationPaymentMethod } from 'data/organizations/organization-payment-methods-query'
+import type { OrganizationPaymentMethod } from 'data/organizations/organization-payment-methods-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
import { useOrgSubscriptionUpdateMutation } from 'data/subscriptions/org-subscription-update-mutation'
-import { SubscriptionTier } from 'data/subscriptions/types'
+import type { SubscriptionTier } from 'data/subscriptions/types'
import { useStore } from 'hooks'
import { Button, Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/DeletePaymentMethodModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/DeletePaymentMethodModal.tsx
index 68bc419fa7e..770976f4009 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/DeletePaymentMethodModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/PaymentMethods/DeletePaymentMethodModal.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { useOrganizationPaymentMethodDeleteMutation } from 'data/organizations/organization-payment-method-delete-mutation'
-import { OrganizationPaymentMethod } from 'data/organizations/organization-payment-methods-query'
+import type { OrganizationPaymentMethod } from 'data/organizations/organization-payment-methods-query'
import { useStore } from 'hooks'
import { Alert, Button, Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx
index 32b384ba0bf..da23dd296e5 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx
@@ -1,5 +1,5 @@
-import { ProjectInfo } from 'data/projects/projects-query'
-import { OrgSubscription, ProjectAddon } from 'data/subscriptions/types'
+import type { ProjectInfo } from 'data/projects/projects-query'
+import type { OrgSubscription, ProjectAddon } from 'data/subscriptions/types'
import { PricingInformation } from 'shared-data'
import { Alert, IconAlertOctagon, IconMinusCircle, IconPauseCircle, Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
index 29019f47d5c..ed7f6166289 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx
@@ -4,7 +4,7 @@ import { useReducer, useRef, useState } from 'react'
import { useParams } from 'common'
import { useSendDowngradeFeedbackMutation } from 'data/feedback/exit-survey-send'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import { useOrgSubscriptionUpdateMutation } from 'data/subscriptions/org-subscription-update-mutation'
import { useFlag, useStore } from 'hooks'
import { Alert, Button, Input, Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index a8910fead88..fbdae99ac0b 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -15,7 +15,7 @@ import { useOrganizationBillingSubscriptionPreview } from 'data/organizations/or
import { useOrgPlansQuery } from 'data/subscriptions/org-plans-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
import { useOrgSubscriptionUpdateMutation } from 'data/subscriptions/org-subscription-update-mutation'
-import { OrgPlan, SubscriptionTier } from 'data/subscriptions/types'
+import type { OrgPlan, SubscriptionTier } from 'data/subscriptions/types'
import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'
import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'
import Telemetry from 'lib/telemetry'
diff --git a/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx b/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx
index 911baec6c53..2a694d3cf24 100644
--- a/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx
+++ b/apps/studio/components/interfaces/Organization/IntegrationSettings/IntegrationSettings.tsx
@@ -12,7 +12,7 @@ import {
} from 'components/layouts/Scaffold'
import { useGitHubConnectionDeleteMutation } from 'data/integrations/github-connection-delete-mutation'
import { useGitHubConnectionsQuery } from 'data/integrations/github-connections-query'
-import { IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type { IntegrationProjectConnection } from 'data/integrations/integrations.types'
import { useSelectedOrganization, useStore } from 'hooks'
import { BASE_PATH, OPT_IN_TAGS } from 'lib/constants'
import { useSidePanelsStateSnapshot } from 'state/side-panels'
diff --git a/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx b/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx
index 95e04e19a31..33cc3504f94 100644
--- a/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx
+++ b/apps/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoLinker.tsx
@@ -7,7 +7,7 @@ import { Markdown } from 'components/interfaces/Markdown'
import { useGitHubAuthorizationQuery } from 'data/integrations/github-authorization-query'
import { useGitHubConnectionCreateMutation } from 'data/integrations/github-connection-create-mutation'
import { useGitHubRepositoriesQuery } from 'data/integrations/github-repositories-query'
-import { IntegrationConnectionsCreateVariables } from 'data/integrations/integrations.types'
+import type { IntegrationConnectionsCreateVariables } from 'data/integrations/integrations.types'
import { useProjectsQuery } from 'data/projects/projects-query'
import { useSelectedOrganization } from 'hooks'
import { openInstallGitHubIntegrationWindow } from 'lib/github'
diff --git a/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx b/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx
index b3b1101188e..0aefed076b3 100644
--- a/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx
+++ b/apps/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx
@@ -2,7 +2,7 @@ import Link from 'next/link'
import { Button, IconAlertCircle } from 'ui'
import InformationBox from 'components/ui/InformationBox'
-import { MemberWithFreeProjectLimit } from 'data/organizations/free-project-limit-check-query'
+import type { MemberWithFreeProjectLimit } from 'data/organizations/free-project-limit-check-query'
interface FreeProjectLimitWarningProps {
membersExceededLimit: MemberWithFreeProjectLimit[]
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
index 3402be2d4d7..4e2d61718f2 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
@@ -1,5 +1,5 @@
import Table from 'components/to-be-cleaned/Table'
-import { AuthorizedApp } from 'data/oauth/authorized-apps-query'
+import type { AuthorizedApp } from 'data/oauth/authorized-apps-query'
import dayjs from 'dayjs'
import { Button, IconTrash } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
index aa9a5a6ed49..69abd09e844 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { useOAuthAppDeleteMutation } from 'data/oauth/oauth-app-delete-mutation'
-import { OAuthApp } from 'data/oauth/oauth-apps-query'
+import type { OAuthApp } from 'data/oauth/oauth-apps-query'
import { useStore } from 'hooks'
import { Alert, IconLock, Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
index b906ddc904d..76391b71602 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
@@ -1,5 +1,5 @@
import Table from 'components/to-be-cleaned/Table'
-import { OAuthApp } from 'data/oauth/oauth-apps-query'
+import type { OAuthApp } from 'data/oauth/oauth-apps-query'
import dayjs from 'dayjs'
import { copyToClipboard } from 'lib/helpers'
import { useState } from 'react'
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
index ec73cc2897c..179f341a6f1 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
@@ -1,14 +1,14 @@
import clsx from 'clsx'
import { ChangeEvent, useEffect, useRef, useState } from 'react'
-import { OAuthScope } from '@supabase/shared-types/out/constants'
+import type { OAuthScope } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import {
OAuthAppCreateResponse,
useOAuthAppCreateMutation,
} from 'data/oauth/oauth-app-create-mutation'
import { useOAuthAppUpdateMutation } from 'data/oauth/oauth-app-update-mutation'
-import { OAuthApp } from 'data/oauth/oauth-apps-query'
+import type { OAuthApp } from 'data/oauth/oauth-apps-query'
import { useStore } from 'hooks'
import { isValidHttpUrl, uuidv4 } from 'lib/helpers'
import { uploadAttachment } from 'lib/upload'
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
index dcedd1fde07..47f7e64bcb9 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { useAuthorizedAppRevokeMutation } from 'data/oauth/authorized-app-revoke-mutation'
-import { AuthorizedApp } from 'data/oauth/authorized-apps-query'
+import type { AuthorizedApp } from 'data/oauth/authorized-apps-query'
import { useStore } from 'hooks'
import { Alert, IconLock, Modal } from 'ui'
diff --git a/apps/studio/components/interfaces/Organization/Organization.utils.ts b/apps/studio/components/interfaces/Organization/Organization.utils.ts
index 44e6c600804..e8bd15acadf 100644
--- a/apps/studio/components/interfaces/Organization/Organization.utils.ts
+++ b/apps/studio/components/interfaces/Organization/Organization.utils.ts
@@ -1,4 +1,4 @@
-import { OrganizationMember } from 'data/organizations/organization-members-query'
+import type { OrganizationMember } from 'data/organizations/organization-members-query'
// Invite is expired if older than 24hrs
export function isInviteExpired(timestamp: string) {
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
index 87f91c21ffe..4a80d1e590d 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
@@ -7,9 +7,9 @@ import { Button, Form, IconMail, Input, Listbox, Modal } from 'ui'
import { object, string } from 'yup'
import { useOrganizationMemberInviteCreateMutation } from 'data/organizations/organization-member-invite-create-mutation'
-import { OrganizationMember } from 'data/organizations/organization-members-query'
+import type { OrganizationMember } from 'data/organizations/organization-members-query'
import { doPermissionsCheck, useGetPermissions, useStore } from 'hooks'
-import { Role } from 'types'
+import type { Role } from 'types'
export interface InviteMemberButtonProps {
orgId: number
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
index 4e73f696c3d..6a22efd6008 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
@@ -19,10 +19,10 @@ import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
import { useOrganizationMemberDeleteMutation } from 'data/organizations/organization-member-delete-mutation'
import { useOrganizationMemberInviteCreateMutation } from 'data/organizations/organization-member-invite-create-mutation'
import { useOrganizationMemberInviteDeleteMutation } from 'data/organizations/organization-member-invite-delete-mutation'
-import { OrganizationMember } from 'data/organizations/organization-members-query'
+import type { OrganizationMember } from 'data/organizations/organization-members-query'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useCheckPermissions, useIsFeatureEnabled, useSelectedOrganization, useStore } from 'hooks'
-import { Role } from 'types'
+import type { Role } from 'types'
import { isInviteExpired } from '../Organization.utils'
import { useGetRolesManagementPermissions } from './TeamSettings.utils'
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.utils.ts b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.utils.ts
index 942362c98bb..7f5136cba16 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.utils.ts
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.utils.ts
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { OrganizationMember } from 'data/organizations/organization-members-query'
+import type { OrganizationMember } from 'data/organizations/organization-members-query'
import { doPermissionsCheck, useGetPermissions } from 'hooks'
-import { Permission, Role } from 'types'
+import type { Permission, Role } from 'types'
export const useGetRolesManagementPermissions = (
orgId?: number,
diff --git a/apps/studio/components/interfaces/Organization/Usage/Activity.tsx b/apps/studio/components/interfaces/Organization/Usage/Activity.tsx
index 6ff0b0c997b..f80c6923fb6 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Activity.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Activity.tsx
@@ -1,6 +1,6 @@
import { DataPoint } from 'data/analytics/constants'
import { PricingMetric, useOrgDailyStatsQuery } from 'data/analytics/org-daily-stats-query'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import UsageSection from './UsageSection/UsageSection'
export interface ActivityProps {
diff --git a/apps/studio/components/interfaces/Organization/Usage/Bandwidth.tsx b/apps/studio/components/interfaces/Organization/Usage/Bandwidth.tsx
index bac6769df6b..f6bbf70669b 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Bandwidth.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Bandwidth.tsx
@@ -1,6 +1,6 @@
import { DataPoint } from 'data/analytics/constants'
import { PricingMetric, useOrgDailyStatsQuery } from 'data/analytics/org-daily-stats-query'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import UsageSection from './UsageSection/UsageSection'
export interface BandwidthProps {
diff --git a/apps/studio/components/interfaces/Organization/Usage/Compute.tsx b/apps/studio/components/interfaces/Organization/Usage/Compute.tsx
index f4b54733bc0..7753a06f78a 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Compute.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Compute.tsx
@@ -1,6 +1,6 @@
import { DataPoint } from 'data/analytics/constants'
import { ComputeUsageMetric, computeUsageMetricLabel } from 'data/analytics/org-daily-stats-query'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import SectionContent from './SectionContent'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import AlertError from 'components/ui/AlertError'
diff --git a/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx b/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
index 9ba7b468ef4..96bc874ff8e 100644
--- a/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
@@ -1,6 +1,6 @@
import { DataPoint } from 'data/analytics/constants'
import { PricingMetric, useOrgDailyStatsQuery } from 'data/analytics/org-daily-stats-query'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import UsageSection from './UsageSection/UsageSection'
export interface SizeAndCountsProps {
diff --git a/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx
index ba4785f9f49..f56de7d4206 100644
--- a/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/TotalUsage.tsx
@@ -1,4 +1,4 @@
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import SectionContent from './SectionContent'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import AlertError from 'components/ui/AlertError'
diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
index 708de836d82..d4e6a4708ed 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.constants.tsx
@@ -1,7 +1,7 @@
import { USAGE_APPROACHING_THRESHOLD } from 'components/interfaces/Billing/Billing.constants'
import { EgressType, PricingMetric } from 'data/analytics/org-daily-stats-query'
-import { OrgSubscription } from 'data/subscriptions/types'
-import { OrgUsageResponse } from 'data/usage/org-usage-query'
+import type { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgUsageResponse } from 'data/usage/org-usage-query'
import { Alert } from 'ui'
export const COLOR_MAP = {
diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts b/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts
index ab58f60e7ca..4e68b9e278a 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts
+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts
@@ -1,5 +1,5 @@
import { DataPoint } from 'data/analytics/constants'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
// [Joshen] This is just for development to generate some test data for chart rendering
export const generateUsageData = (attribute: string, days: number): DataPoint[] => {
diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx
index ea59cdd0649..da6f20200c6 100644
--- a/apps/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx
@@ -1,5 +1,5 @@
import clsx from 'clsx'
-import { Payload, ValueType } from 'recharts/types/component/DefaultTooltipContent'
+import type { Payload, ValueType } from 'recharts/types/component/DefaultTooltipContent'
import { Attribute, COLOR_MAP } from './Usage.constants'
export interface SingleAttributeTooltipContentProps {
diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
index 987f544f56f..e0a01bd76c1 100644
--- a/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
@@ -6,11 +6,11 @@ import AlertError from 'components/ui/AlertError'
import Panel from 'components/ui/Panel'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import SparkBar from 'components/ui/SparkBar'
-import { OrgSubscription } from 'data/subscriptions/types'
-import { OrgMetricsUsage, OrgUsageResponse } from 'data/usage/org-usage-query'
+import type { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgMetricsUsage, OrgUsageResponse } from 'data/usage/org-usage-query'
import { USAGE_APPROACHING_THRESHOLD } from 'lib/constants'
import { useMemo } from 'react'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { Button, IconAlertTriangle, IconBarChart2 } from 'ui'
import SectionContent from '../SectionContent'
import { CategoryAttribute } from '../Usage.constants'
diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx
index 7f8347332ac..f5a4fe47b8f 100644
--- a/apps/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx
@@ -1,6 +1,6 @@
import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold'
import { DataPoint } from 'data/analytics/constants'
-import { OrgSubscription } from 'data/subscriptions/types'
+import type { OrgSubscription } from 'data/subscriptions/types'
import { useOrgUsageQuery } from 'data/usage/org-usage-query'
import SectionHeader from '../SectionHeader'
import { CategoryMetaKey, USAGE_CATEGORIES } from '../Usage.constants'
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx
index 02361fe320e..22bf7499a4e 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx
@@ -6,7 +6,7 @@ import { formatBytes } from 'lib/helpers'
import { useAppStateSnapshot } from 'state/app-state'
import { DOCS_RESOURCE_CONTENT } from '../ProjectAPIDocs.constants'
import ResourceContent from '../ResourceContent'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const Bucket = ({ language, apikey, endpoint }: ContentProps) => {
const { ref } = useParams()
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunction.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunction.tsx
index 0bc0fcd63c8..dca7cce0c52 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunction.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunction.tsx
@@ -4,7 +4,7 @@ import { useEdgeFunctionsQuery } from 'data/edge-functions/edge-functions-query'
import { useAppStateSnapshot } from 'state/app-state'
import { DOCS_RESOURCE_CONTENT } from '../ProjectAPIDocs.constants'
import ResourceContent from '../ResourceContent'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const Bucket = ({ language, apikey = 'API_KEY', endpoint }: ContentProps) => {
const { ref } = useParams()
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunctions.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunctions.tsx
index c3ed52dfdb1..c33ccd8a267 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunctions.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunctions.tsx
@@ -1,6 +1,6 @@
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const EdgeFunctions = ({ language }: ContentProps) => {
return (
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
index 9a669a98b8f..165c1bce3dd 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
@@ -7,7 +7,7 @@ import { generateTypes } from 'data/projects/project-type-generation-query'
import { useStore } from 'hooks'
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const Entities = ({ language }: ContentProps) => {
const { ui } = useStore()
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entity.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entity.tsx
index a497204147b..5d35d677bd8 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entity.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entity.tsx
@@ -6,7 +6,7 @@ import { useProjectJsonSchemaQuery } from 'data/docs/project-json-schema-query'
import { useAppStateSnapshot } from 'state/app-state'
import { DOCS_RESOURCE_CONTENT } from '../ProjectAPIDocs.constants'
import ResourceContent from '../ResourceContent'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
import { tempRemovePostgrestText } from './Content.utils'
import LanguageSelector from '../LanguageSelector'
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
index c308dd63ba1..a79d78b3ac4 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
@@ -4,7 +4,7 @@ import { Button, IconCopy, Input } from 'ui'
import { useProjectApiQuery } from 'data/config/project-api-query'
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
import { copyToClipboard } from 'lib/helpers'
import { useEffect, useState } from 'react'
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx
index f57d4af9d25..09cc8e1d785 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/RPC.tsx
@@ -8,7 +8,7 @@ import { useOpenAPISpecQuery } from 'data/open-api/api-spec-query'
import { useAppStateSnapshot } from 'state/app-state'
import { DOCS_RESOURCE_CONTENT } from '../ProjectAPIDocs.constants'
import ResourceContent from '../ResourceContent'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const RPC = ({ language }: ContentProps) => {
const { ref } = useParams()
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Realtime.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Realtime.tsx
index abf69033170..e628ddca522 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Realtime.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Realtime.tsx
@@ -1,6 +1,6 @@
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const Realtime = ({ language }: ContentProps) => {
return (
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Storage.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Storage.tsx
index c9a76f5c415..18f7b851799 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Storage.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Storage.tsx
@@ -1,6 +1,6 @@
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const Storage = ({ language }: ContentProps) => {
return (
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/StoredProcedures.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/StoredProcedures.tsx
index 977e88a777d..20ef8e3767c 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/StoredProcedures.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/StoredProcedures.tsx
@@ -1,6 +1,6 @@
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const StoredProcedures = ({ language }: ContentProps) => {
return (
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/UserManagement.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/UserManagement.tsx
index 4f75a2c2663..22e762d9eb5 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/UserManagement.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/UserManagement.tsx
@@ -1,6 +1,6 @@
import ContentSnippet from '../ContentSnippet'
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
-import { ContentProps } from './Content.types'
+import type { ContentProps } from './Content.types'
const UserManagement = ({ language, apikey, endpoint }: ContentProps) => {
return (
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx
index dde4f3d36ad..db121fd1bb3 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx
@@ -5,7 +5,7 @@ import { Button, IconX, cn } from 'ui'
import CopyButton from 'components/ui/CopyButton'
import Telemetry from 'lib/telemetry'
-import { LogData } from './Messages.types'
+import type { LogData } from './Messages.types'
import { SelectedRealtimeMessagePanel } from './SelectedRealtimeMessagePanel'
export interface MessageSelectionProps {
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
index 75473d1a61d..3078c96e5f2 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
@@ -10,7 +10,7 @@ import ShimmerLine from 'components/ui/ShimmerLine'
import Telemetry from 'lib/telemetry'
import { useRouter } from 'next/router'
import MessageSelection from './MessageSelection'
-import { LogData } from './Messages.types'
+import type { LogData } from './Messages.types'
import NoChannelEmptyState from './NoChannelEmptyState'
import { ColumnRenderer } from './RealtimeMessageColumnRenderer'
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx
index ac0315e1274..9c7308c6a23 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx
@@ -1,7 +1,7 @@
import { Column } from 'react-data-grid'
import { IconAlertTriangle, IconBroadcast, IconDatabaseChanges, IconPresence, cn } from 'ui'
-import { LogData, PreviewLogData } from './Messages.types'
+import type { LogData, PreviewLogData } from './Messages.types'
import { RowLayout } from './MessagesFormatters'
import { isErrorLog } from './MessagesTable'
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/SelectedRealtimeMessagePanel.tsx b/apps/studio/components/interfaces/Realtime/Inspector/SelectedRealtimeMessagePanel.tsx
index 44f0a236042..529dfb5dca9 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/SelectedRealtimeMessagePanel.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/SelectedRealtimeMessagePanel.tsx
@@ -1,4 +1,4 @@
-import { LogData } from './Messages.types'
+import type { LogData } from './Messages.types'
import { jsonSyntaxHighlight, SelectionDetailedTimestampRow } from './MessagesFormatters'
const LogsDivider = () => {
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts b/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts
index 9dd8a914613..6e3dd7a23ab 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts
+++ b/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts
@@ -6,7 +6,7 @@ import toast from 'react-hot-toast'
import { useProjectApiQuery } from 'data/config/project-api-query'
import { uuidv4 } from 'lib/helpers'
import { EMPTY_ARR } from 'lib/void'
-import { LogData } from './Messages.types'
+import type { LogData } from './Messages.types'
function reducer(
state: LogData[],
diff --git a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
index bed81a02361..18e49316f3d 100644
--- a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
@@ -22,7 +22,7 @@ import {
import DatePickers from '../Settings/Logs/Logs.DatePickers'
import { REPORTS_DATEPICKER_HELPERS } from './Reports.constants'
-import { ReportFilterItem } from './Reports.types'
+import type { ReportFilterItem } from './Reports.types'
interface ReportFilterBarProps {
filters: ReportFilterItem[]
diff --git a/apps/studio/components/interfaces/Reports/ReportWidget.tsx b/apps/studio/components/interfaces/Reports/ReportWidget.tsx
index 17a409494b8..f8bf9fa3524 100644
--- a/apps/studio/components/interfaces/Reports/ReportWidget.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportWidget.tsx
@@ -3,7 +3,7 @@ import Panel from 'components/ui/Panel'
import { NextRouter, useRouter } from 'next/router'
import { Button, IconExternalLink, IconHelpCircle, Loading } from 'ui'
import { LogsEndpointParams } from '../Settings/Logs'
-import { BaseReportParams, ReportQueryType } from './Reports.types'
+import type { BaseReportParams, ReportQueryType } from './Reports.types'
export interface ReportWidgetProps<T = any> {
data: T[]
diff --git a/apps/studio/components/interfaces/Reports/Reports.queries.ts b/apps/studio/components/interfaces/Reports/Reports.queries.ts
index 11e6cdded25..a20c94b481b 100644
--- a/apps/studio/components/interfaces/Reports/Reports.queries.ts
+++ b/apps/studio/components/interfaces/Reports/Reports.queries.ts
@@ -1,8 +1,6 @@
-import { useProjectContentStore } from 'stores/projectContentStore'
import { PRESET_CONFIG } from './Reports.constants'
import { Presets } from './Reports.types'
import useDbQuery from 'hooks/analytics/useDbQuery'
-import { useMutation, useQuery } from '@tanstack/react-query'
type QueryPerformanceQueryOpts = {
searchQuery: string
diff --git a/apps/studio/components/interfaces/Reports/Reports.types.ts b/apps/studio/components/interfaces/Reports/Reports.types.ts
index b1f5c8da7be..17e18e61120 100644
--- a/apps/studio/components/interfaces/Reports/Reports.types.ts
+++ b/apps/studio/components/interfaces/Reports/Reports.types.ts
@@ -1,4 +1,4 @@
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { DEFAULT_QUERY_PARAMS } from './Reports.constants'
export enum Presets {
diff --git a/apps/studio/components/interfaces/Reports/Reports.utils.tsx b/apps/studio/components/interfaces/Reports/Reports.utils.tsx
index 3182492f658..cbf86b4693c 100644
--- a/apps/studio/components/interfaces/Reports/Reports.utils.tsx
+++ b/apps/studio/components/interfaces/Reports/Reports.utils.tsx
@@ -1,6 +1,6 @@
import useDbQuery, { DbQueryHook } from 'hooks/analytics/useDbQuery'
import useLogsQuery, { LogsQueryHook } from 'hooks/analytics/useLogsQuery'
-import { BaseQueries, PresetConfig, ReportQuery } from './Reports.types'
+import type { BaseQueries, PresetConfig, ReportQuery } from './Reports.types'
/**
* Converts a query params string to an object
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
index b86d8b24b83..216963c7a3d 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
@@ -1,7 +1,7 @@
import { useState } from 'react'
import { Button, PopoverContent_Shadcn_, PopoverTrigger_Shadcn_, Popover_Shadcn_, cn } from 'ui'
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
import { ChevronDown, User as IconUser } from 'lucide-react'
import { useRoleImpersonationStateSnapshot } from 'state/role-impersonation-state'
import { getAvatarUrl, getDisplayName } from '../Auth/Users/UserListItem.utils'
diff --git a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
index 213ce51acf4..2d0c335907c 100644
--- a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
@@ -1,4 +1,4 @@
-import { ModalProps } from '@ui/components/Modal/Modal'
+import type { ModalProps } from '@ui/components/Modal/Modal'
import { snakeCase } from 'lodash'
import Link from 'next/link'
import { useState } from 'react'
diff --git a/apps/studio/components/interfaces/SQLEditor/MonacoEditor.tsx b/apps/studio/components/interfaces/SQLEditor/MonacoEditor.tsx
index b6a50b8ad43..9430592dd39 100644
--- a/apps/studio/components/interfaces/SQLEditor/MonacoEditor.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/MonacoEditor.tsx
@@ -5,12 +5,12 @@ import { useRouter } from 'next/router'
import { MutableRefObject, useEffect, useRef, useState } from 'react'
import { cn } from 'ui'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useLocalStorageQuery, useSelectedProject } from 'hooks'
import { useProfile } from 'lib/profile'
import { useSqlEditorStateSnapshot } from 'state/sql-editor'
import { untitledSnippetTitle } from './SQLEditor.constants'
-import { IStandaloneCodeEditor } from './SQLEditor.types'
+import type { IStandaloneCodeEditor } from './SQLEditor.types'
import { createSqlSnippetSkeleton } from './SQLEditor.utils'
import { LOCAL_STORAGE_KEYS } from 'lib/constants'
diff --git a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
index 268dea8c989..d9bba744401 100644
--- a/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
@@ -1,7 +1,7 @@
import { useParams } from 'common'
import { useSqlTitleGenerateMutation } from 'data/ai/sql-title-mutation'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { isError } from 'data/utils/error-check'
import { useSelectedOrganization, useStore } from 'hooks'
import { useEffect, useState } from 'react'
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts b/apps/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
index 4d7055b9ebd..95ef97c400e 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
@@ -1,6 +1,6 @@
import { stripIndent } from 'common-tags'
-import { SqlSnippets, UserContent } from 'types'
-import { SQLTemplate } from './SQLEditor.types'
+import type { SqlSnippets, UserContent } from 'types'
+import type { SQLTemplate } from './SQLEditor.types'
export const SQL_TEMPLATES: SQLTemplate[] = [
{
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx
index 91fa4582592..713ddefb011 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx
@@ -1,4 +1,4 @@
-import { Monaco } from '@monaco-editor/react'
+import type { Monaco } from '@monaco-editor/react'
import { useParams, useTelemetryProps } from 'common'
import { AnimatePresence, motion } from 'framer-motion'
import dynamic from 'next/dynamic'
@@ -31,7 +31,7 @@ import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog'
import { useSqlEditMutation } from 'data/ai/sql-edit-mutation'
import { useSqlGenerateMutation } from 'data/ai/sql-generate-mutation'
import { useSqlTitleGenerateMutation } from 'data/ai/sql-title-mutation'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useEntityDefinitionsQuery } from 'data/database/entity-definitions-query'
import { useReadReplicasQuery } from 'data/read-replicas/replicas-query'
import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation'
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.utils.ts b/apps/studio/components/interfaces/SQLEditor/SQLEditor.utils.ts
index 24012e3a73c..18ca6c224cd 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.utils.ts
+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.utils.ts
@@ -1,6 +1,6 @@
// @ts-ignore
import { NEW_SQL_SNIPPET_SKELETON, destructiveSqlRegex } from './SQLEditor.constants'
-import { SqlSnippets, UserContent } from 'types'
+import type { SqlSnippets, UserContent } from 'types'
import { DiffType } from './SQLEditor.types'
import { removeCommentsFromSql } from 'lib/helpers'
import { stripIndent } from 'common-tags'
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx
index 988b254a787..7db43451822 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx
@@ -4,7 +4,7 @@ import { observer } from 'mobx-react-lite'
import { useParams, useTelemetryProps } from 'common'
import { SQL_TEMPLATES } from 'components/interfaces/SQLEditor/SQLEditor.constants'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useCheckPermissions, useSelectedProject, useStore } from 'hooks'
import { uuidv4 } from 'lib/helpers'
import { useProfile } from 'lib/profile'
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
index df84619c0f9..390f495976d 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx
@@ -5,7 +5,7 @@ import { observer } from 'mobx-react-lite'
import { useTelemetryProps } from 'common'
import { SQL_TEMPLATES } from 'components/interfaces/SQLEditor/SQLEditor.constants'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useCheckPermissions, useStore } from 'hooks'
import { uuidv4 } from 'lib/helpers'
import { useProfile } from 'lib/profile'
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/FavoriteButton.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/FavoriteButton.tsx
index 9e5dc5b4a84..53b373ffa91 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/FavoriteButton.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/FavoriteButton.tsx
@@ -7,7 +7,7 @@ import {
} from 'ui'
import { useQueryClient } from '@tanstack/react-query'
import { contentKeys } from 'data/content/keys'
-import { Content, ContentData } from 'data/content/content-query'
+import type { Content, ContentData } from 'data/content/content-query'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useSqlEditorStateSnapshot } from 'state/sql-editor'
diff --git a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
index 2361900fc4d..187b3339195 100644
--- a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
@@ -40,7 +40,7 @@ import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'
import { useProjectSettingsQuery } from 'data/config/project-settings-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'
-import { ProjectAddonVariantMeta } from 'data/subscriptions/types'
+import type { ProjectAddonVariantMeta } from 'data/subscriptions/types'
import { useFlag, useProjectByRef, useSelectedOrganization } from 'hooks'
import { getCloudProviderArchitecture } from 'lib/cloudprovider-utils'
import { BASE_PATH, INSTANCE_MICRO_SPECS, INSTANCE_NANO_SPECS } from 'lib/constants'
diff --git a/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx
index 32343e818f2..041bd8725d6 100644
--- a/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx
@@ -29,7 +29,7 @@ import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-que
import { useProjectAddonRemoveMutation } from 'data/subscriptions/project-addon-remove-mutation'
import { useProjectAddonUpdateMutation } from 'data/subscriptions/project-addon-update-mutation'
import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'
-import { AddonVariantId, ProjectAddonVariantMeta } from 'data/subscriptions/types'
+import type { AddonVariantId, ProjectAddonVariantMeta } from 'data/subscriptions/types'
import { useCheckPermissions, useFlag, useSelectedOrganization, useStore } from 'hooks'
import { getCloudProviderArchitecture } from 'lib/cloudprovider-utils'
import { INSTANCE_MICRO_SPECS, PROJECT_STATUS } from 'lib/constants'
diff --git a/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
index c70c8ffe13f..b8b4affbbfa 100644
--- a/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
@@ -24,7 +24,7 @@ import {
SidePanel,
} from 'ui'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
-import { AddonVariantId } from 'data/subscriptions/types'
+import type { AddonVariantId } from 'data/subscriptions/types'
import { formatCurrency } from 'lib/helpers'
import { useFlag } from 'hooks'
diff --git a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx
index 3286477e8e3..e652ff5078e 100644
--- a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx
@@ -9,7 +9,7 @@ import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-que
import { useProjectAddonRemoveMutation } from 'data/subscriptions/project-addon-remove-mutation'
import { useProjectAddonUpdateMutation } from 'data/subscriptions/project-addon-update-mutation'
import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'
-import { AddonVariantId } from 'data/subscriptions/types'
+import type { AddonVariantId } from 'data/subscriptions/types'
import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'
import { formatCurrency } from 'lib/helpers'
import Telemetry from 'lib/telemetry'
diff --git a/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
index 70a052fa4d0..86c5cba401e 100644
--- a/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx
@@ -17,7 +17,7 @@ import { subscriptionHasHipaaAddon } from 'components/interfaces/Billing/Subscri
import { CriticalIcon, WarningIcon } from 'components/ui/Icons'
import { useReadReplicasQuery } from 'data/read-replicas/replicas-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
-import { AddonVariantId } from 'data/subscriptions/types'
+import type { AddonVariantId } from 'data/subscriptions/types'
import { formatCurrency } from 'lib/helpers'
import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'
import {
diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.utils.ts b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.utils.ts
index 70b0671d318..e04f1d64f19 100644
--- a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.utils.ts
+++ b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.utils.ts
@@ -1,4 +1,4 @@
-import { PoolingConfiguration } from 'data/database/pooling-configuration-query'
+import type { PoolingConfiguration } from 'data/database/pooling-configuration-query'
export const getConnectionStrings = (
connectionInfo: {
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
index 1724ed66231..b7d20ff1703 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
@@ -17,7 +17,7 @@ import { useProjectApiQuery } from 'data/config/project-api-query'
import { useCheckCNAMERecordMutation } from 'data/custom-domains/check-cname-mutation'
import { useCustomDomainActivateMutation } from 'data/custom-domains/custom-domains-activate-mutation'
import { useCustomDomainDeleteMutation } from 'data/custom-domains/custom-domains-delete-mutation'
-import { CustomDomainResponse } from 'data/custom-domains/custom-domains-query'
+import type { CustomDomainResponse } from 'data/custom-domains/custom-domains-query'
import { useStore } from 'hooks'
export type CustomDomainActivateProps = {
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
index 9c6a909a18a..4e4341ef4c2 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
@@ -6,7 +6,7 @@ import { Button, IconExternalLink, IconTrash } from 'ui'
import ConfirmModal from 'ui-patterns/Dialogs/ConfirmDialog'
import Panel from 'components/ui/Panel'
import { useCustomDomainDeleteMutation } from 'data/custom-domains/custom-domains-delete-mutation'
-import { CustomDomainResponse } from 'data/custom-domains/custom-domains-query'
+import type { CustomDomainResponse } from 'data/custom-domains/custom-domains-query'
import { useStore } from 'hooks'
export type CustomDomainDeleteProps = {
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
index 4356a6a677e..bd2083d96b0 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
@@ -14,9 +14,9 @@ import {
} from 'ui'
import Panel from 'components/ui/Panel'
-import { ProjectApiResponse } from 'data/config/project-api-query'
+import type { ProjectApiResponse } from 'data/config/project-api-query'
import { useCustomDomainDeleteMutation } from 'data/custom-domains/custom-domains-delete-mutation'
-import { CustomDomainResponse } from 'data/custom-domains/custom-domains-query'
+import type { CustomDomainResponse } from 'data/custom-domains/custom-domains-query'
import { useCustomDomainReverifyMutation } from 'data/custom-domains/custom-domains-reverify-mutation'
import DNSRecord from './DNSRecord'
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx
index 0ee6a859a46..50ea8ea2e21 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DropReplicaConfirmationModal.tsx
@@ -10,7 +10,7 @@ import {
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
import { useReadReplicaRemoveMutation } from 'data/read-replicas/replica-remove-mutation'
-import { Database } from 'data/read-replicas/replicas-query'
+import type { Database } from 'data/read-replicas/replicas-query'
import { formatDatabaseID } from 'data/read-replicas/replicas.utils'
interface DropReplicaConfirmationModalProps {
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.utils.ts b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.utils.ts
index c7a4ab2e687..2cf452f0d59 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.utils.ts
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.utils.ts
@@ -8,8 +8,8 @@ import {
NODE_WIDTH,
} from './InstanceConfiguration.constants'
import { groupBy } from 'lodash'
-import { Database } from 'data/read-replicas/replicas-query'
-import { LoadBalancer } from 'data/read-replicas/load-balancers-query'
+import type { Database } from 'data/read-replicas/replicas-query'
+import type { LoadBalancer } from 'data/read-replicas/load-balancers-query'
// [Joshen] Just FYI the nodes generation assumes each project only has one load balancer
// Will need to change if this eventually becomes otherwise
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
index 7e3fe15e480..07aa954d7b4 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
@@ -36,7 +36,7 @@ import { useBranchUpdateMutation } from 'data/branches/branch-update-mutation'
import { useBranchesQuery } from 'data/branches/branches-query'
import { useGitHubBranchesQuery } from 'data/integrations/github-branches-query'
import { useGitHubConnectionUpdateMutation } from 'data/integrations/github-connection-update-mutation'
-import { IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type { IntegrationProjectConnection } from 'data/integrations/integrations.types'
import { useSelectedOrganization, useSelectedProject } from 'hooks'
interface GitHubIntegrationConnectionFormProps {
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
index a9645e1005b..35be467a13b 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
@@ -13,7 +13,10 @@ import {
import { useBranchesDisableMutation } from 'data/branches/branches-disable-mutation'
import { useGitHubConnectionDeleteMutation } from 'data/integrations/github-connection-delete-mutation'
import { useGitHubConnectionsQuery } from 'data/integrations/github-connections-query'
-import { IntegrationName, IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type {
+ IntegrationName,
+ IntegrationProjectConnection,
+} from 'data/integrations/integrations.types'
import { useSelectedOrganization, useSelectedProject, useStore } from 'hooks'
import { OPT_IN_TAGS } from 'lib/constants'
import { useSidePanelsStateSnapshot } from 'state/side-panels'
diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx
index e4574e7045b..4078c84eb67 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx
@@ -17,7 +17,10 @@ import {
import * as z from 'zod'
import { ScaffoldDivider } from 'components/layouts/Scaffold'
-import { Integration, IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type {
+ Integration,
+ IntegrationProjectConnection,
+} from 'data/integrations/integrations.types'
import { useVercelConnectionUpdateMutation } from 'data/integrations/vercel-connection-update-mutate'
import { useFlag, useStore } from 'hooks'
diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
index 0055238a699..53b49161d45 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
@@ -18,7 +18,10 @@ import {
import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'
import { useIntegrationsVercelInstalledConnectionDeleteMutation } from 'data/integrations/integrations-vercel-installed-connection-delete-mutation'
import { useVercelProjectsQuery } from 'data/integrations/integrations-vercel-projects-query'
-import { IntegrationName, IntegrationProjectConnection } from 'data/integrations/integrations.types'
+import type {
+ IntegrationName,
+ IntegrationProjectConnection,
+} from 'data/integrations/integrations.types'
import { useSelectedOrganization, useSelectedProject, useStore } from 'hooks'
import { pluralize } from 'lib/helpers'
import { getIntegrationConfigurationUrl } from 'lib/integration-utils'
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabaseApiColumnRender.tsx b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabaseApiColumnRender.tsx
index 17ef7e738e5..19f3a978bdd 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabaseApiColumnRender.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabaseApiColumnRender.tsx
@@ -1,5 +1,5 @@
import { Column } from 'react-data-grid'
-import { LogData } from '../Logs.types'
+import type { LogData } from '../Logs.types'
import {
ResponseCodeFormatter,
RowLayout,
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabasePostgresColumnRender.tsx b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabasePostgresColumnRender.tsx
index 9704667ae67..687410b835b 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabasePostgresColumnRender.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/DatabasePostgresColumnRender.tsx
@@ -1,5 +1,5 @@
import { Column } from 'react-data-grid'
-import { LogData } from '../Logs.types'
+import type { LogData } from '../Logs.types'
import {
RowLayout,
SeverityFormatter,
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsEdgeColumnRender.tsx b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsEdgeColumnRender.tsx
index ed4e9c10a42..c1ebb546780 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsEdgeColumnRender.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsEdgeColumnRender.tsx
@@ -1,5 +1,5 @@
import { Column } from 'react-data-grid'
-import { LogData } from '../Logs.types'
+import type { LogData } from '../Logs.types'
import {
ResponseCodeFormatter,
RowLayout,
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsLogsColumnRender.tsx b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsLogsColumnRender.tsx
index 33ce303e045..5983e74eacb 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsLogsColumnRender.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogColumnRenderers/FunctionsLogsColumnRender.tsx
@@ -1,5 +1,5 @@
import { Column } from 'react-data-grid'
-import { LogData } from '../Logs.types'
+import type { LogData } from '../Logs.types'
import {
RowLayout,
SeverityFormatter,
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogEventChart.tsx b/apps/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
index b96a88dfc5a..a98008faeeb 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
@@ -1,5 +1,5 @@
import BarChart from 'components/ui/Charts/BarChart'
-import { Datum } from 'components/ui/Charts/Charts.types'
+import type { Datum } from 'components/ui/Charts/Charts.types'
import { EventChartData } from '.'
export interface LogEventChartProps {
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx b/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx
index b791eaa29b0..c88a751281c 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx
@@ -10,7 +10,7 @@ import {
LogsEndpointParams,
unixMicroToIsoTimestamp,
} from '.'
-import { LogData, QueryType } from './Logs.types'
+import type { LogData, QueryType } from './Logs.types'
import AuthSelectionRenderer from './LogSelectionRenderers/AuthSelectionRenderer'
import DatabaseApiSelectionRender from './LogSelectionRenderers/DatabaseApiSelectionRender'
import DatabasePostgresSelectionRender from './LogSelectionRenderers/DatabasePostgresSelectionRender'
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
index ae9c56950c8..c9e802289d8 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -28,7 +28,7 @@ import DefaultPreviewColumnRenderer from './LogColumnRenderers/DefaultPreviewCol
import FunctionsEdgeColumnRender from './LogColumnRenderers/FunctionsEdgeColumnRender'
import FunctionsLogsColumnRender from './LogColumnRenderers/FunctionsLogsColumnRender'
import LogSelection, { LogSelectionProps } from './LogSelection'
-import { LogData, QueryType } from './Logs.types'
+import type { LogData, QueryType } from './Logs.types'
import DefaultErrorRenderer from './LogsErrorRenderers/DefaultErrorRenderer'
import ResourcesExceededErrorRenderer from './LogsErrorRenderers/ResourcesExceededErrorRenderer'
import { CSVLink } from 'react-csv'
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.types.ts b/apps/studio/components/interfaces/Settings/Logs/Logs.types.ts
index 0346c3f4797..6f63652772f 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.types.ts
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.types.ts
@@ -1,4 +1,4 @@
-import { Datum } from 'components/ui/Charts/Charts.types'
+import type { Datum } from 'components/ui/Charts/Charts.types'
import React from 'react'
interface Metadata {
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts b/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts
index a0133c2f4af..73a036c4309 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts
@@ -6,7 +6,7 @@ import { useEffect } from 'react'
import logConstants from 'shared-data/logConstants'
import BackwardIterator from 'components/ui/CodeEditor/Providers/BackwardIterator'
-import { PlanId } from 'data/subscriptions/types'
+import type { PlanId } from 'data/subscriptions/types'
import { Filters, LogData, LogsEndpointParams, LogsTableName, SQL_FILTER_TEMPLATES } from '.'
/**
diff --git a/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx b/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
index 11925c422cd..5d881103338 100644
--- a/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
@@ -1,7 +1,7 @@
import { Button, IconPlay } from 'ui'
import Table from 'components/to-be-cleaned/Table'
import { useRouter } from 'next/router'
-import { LogSqlSnippets } from 'types'
+import type { LogSqlSnippets } from 'types'
import SqlSnippetCode from './Logs.SqlSnippetCode'
interface Props {
diff --git a/apps/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx b/apps/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx
index 6c17951aed3..6d05a4ad92e 100644
--- a/apps/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx
@@ -4,7 +4,7 @@ import { Modal } from 'ui'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useVaultSecretDeleteMutation } from 'data/vault/vault-secret-delete-mutation'
import { useStore } from 'hooks'
-import { VaultSecret } from 'types'
+import type { VaultSecret } from 'types'
interface DeleteSecretModalProps {
selectedSecret: VaultSecret | undefined
diff --git a/apps/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx b/apps/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx
index 9c83c613482..a91ba6cecc0 100644
--- a/apps/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx
@@ -8,7 +8,7 @@ import { usePgSodiumKeyCreateMutation } from 'data/pg-sodium-keys/pg-sodium-key-
import { useVaultSecretDecryptedValueQuery } from 'data/vault/vault-secret-decrypted-value-query'
import { useVaultSecretUpdateMutation } from 'data/vault/vault-secret-update-mutation'
import { useStore } from 'hooks'
-import { VaultSecret } from 'types'
+import type { VaultSecret } from 'types'
import EncryptionKeySelector from '../Keys/EncryptionKeySelector'
interface EditSecretModalProps {
diff --git a/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx b/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
index 4366896e4a1..9f4177203a7 100644
--- a/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
+++ b/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
@@ -23,7 +23,7 @@ import {
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useVaultSecretDecryptedValueQuery } from 'data/vault/vault-secret-decrypted-value-query'
import { useCheckPermissions } from 'hooks'
-import { VaultSecret } from 'types'
+import type { VaultSecret } from 'types'
interface SecretRowProps {
secret: VaultSecret
diff --git a/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx b/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx
index e978dc8e0aa..30c62774ddd 100644
--- a/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx
+++ b/apps/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx
@@ -11,7 +11,7 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConte
import Divider from 'components/ui/Divider'
import { useVaultSecretsQuery } from 'data/vault/vault-secrets-query'
import { useCheckPermissions } from 'hooks'
-import { VaultSecret } from 'types'
+import type { VaultSecret } from 'types'
import AddNewSecretModal from './AddNewSecretModal'
import DeleteSecretModal from './DeleteSecretModal'
import EditSecretModal from './EditSecretModal'
diff --git a/apps/studio/components/interfaces/SignIn/SignInForm.tsx b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
index 84a88eb6568..506b13568e4 100644
--- a/apps/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -1,6 +1,5 @@
import HCaptcha from '@hcaptcha/react-hcaptcha'
-import * as Sentry from '@sentry/nextjs'
-import { AuthError } from '@supabase/supabase-js'
+import type { AuthError } from '@supabase/supabase-js'
import { useQueryClient } from '@tanstack/react-query'
import Link from 'next/link'
import { useRouter } from 'next/router'
diff --git a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
index d30110e2ff2..f5f2cfc2c64 100644
--- a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
@@ -1,5 +1,5 @@
import { AuthError } from '@supabase/gotrue-js'
-import { Factor } from '@supabase/supabase-js'
+import type { Factor } from '@supabase/supabase-js'
import { useQueryClient } from '@tanstack/react-query'
import Link from 'next/link'
import { useRouter } from 'next/router'
diff --git a/apps/studio/components/interfaces/Storage/EditBucketModal.tsx b/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
index bb470d8e067..c030d2cd4c5 100644
--- a/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
+++ b/apps/studio/components/interfaces/Storage/EditBucketModal.tsx
@@ -22,7 +22,7 @@ import {
Modal,
Toggle,
} from 'ui'
-import { StorageBucket } from './Storage.types'
+import type { StorageBucket } from './Storage.types'
export interface EditBucketModalProps {
visible: boolean
diff --git a/apps/studio/components/interfaces/Storage/Storage.types.ts b/apps/studio/components/interfaces/Storage/Storage.types.ts
index 14216ae8d95..37b00902f28 100644
--- a/apps/studio/components/interfaces/Storage/Storage.types.ts
+++ b/apps/studio/components/interfaces/Storage/Storage.types.ts
@@ -1,4 +1,4 @@
-import { PolicyFormField } from 'components/interfaces/Auth/Policies/Policies.types'
+import type { PolicyFormField } from 'components/interfaces/Auth/Policies/Policies.types'
export interface StoragePolicyFormField extends PolicyFormField {
allowedOperations: string[]
diff --git a/apps/studio/components/interfaces/Support/SupportForm.tsx b/apps/studio/components/interfaces/Support/SupportForm.tsx
index 7545bda0b21..fad2969fe46 100644
--- a/apps/studio/components/interfaces/Support/SupportForm.tsx
+++ b/apps/studio/components/interfaces/Support/SupportForm.tsx
@@ -27,7 +27,7 @@ import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import { getProjectAuthConfig } from 'data/auth/auth-config-query'
import { useSendSupportTicketMutation } from 'data/feedback/support-ticket-send'
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
-import { Project } from 'data/projects/project-detail-query'
+import type { Project } from 'data/projects/project-detail-query'
import { useProjectsQuery } from 'data/projects/projects-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
import { useFlag, useStore } from 'hooks'
diff --git a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
index 862349967e4..1fae2696aaf 100644
--- a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
@@ -2,7 +2,7 @@ import Link from 'next/link'
import toast from 'react-hot-toast'
import { Alert, Button, Checkbox, IconExternalLink, Modal } from 'ui'
-import { SupaRow } from 'components/grid'
+import type { SupaRow } from 'components/grid'
import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
@@ -13,11 +13,10 @@ import { useTableRowTruncateMutation } from 'data/table-rows/table-row-truncate-
import { useTableDeleteMutation } from 'data/tables/table-delete-mutation'
import { useGetTables } from 'data/tables/tables-query'
import { useUrlState } from 'hooks'
-import { TableLike } from 'hooks/misc/useTable'
+import type { TableLike } from 'hooks/misc/useTable'
import { noop } from 'lib/void'
import { useGetImpersonatedRole } from 'state/role-impersonation-state'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { tableKeys } from 'data/tables/keys'
export type DeleteConfirmationDialogsProps = {
projectRef?: string
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx
index 98872c0c5b1..37298ca9a5a 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx
@@ -1,11 +1,11 @@
import { noop } from 'lodash'
import { Select } from 'ui'
-import { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
+import type { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
import { POSTGRES_DATA_TYPES } from '../SidePanelEditor.constants'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ColumnField } from '../SidePanelEditor.types'
import { typeExpressionSuggestions } from './ColumnEditor.constants'
-import { Suggestion } from './ColumnEditor.types'
+import type { Suggestion } from './ColumnEditor.types'
import InputWithSuggestions from './InputWithSuggestions'
interface ColumnDefaultValueProps {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts
index 434a83f28c3..ad364b3ca4f 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts
@@ -1,5 +1,5 @@
-import { Dictionary } from 'types'
-import { Suggestion } from './ColumnEditor.types'
+import type { Dictionary } from 'types'
+import type { Suggestion } from './ColumnEditor.types'
const defaultTimeBasedExpressions: Suggestion[] = [
{
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
index fd562a11a04..000d0c387e9 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
@@ -31,12 +31,16 @@ import {
} from 'data/database/foreign-key-constraints-query'
import { useEnumeratedTypesQuery } from 'data/enumerated-types/enumerated-types-query'
import { EXCLUDED_SCHEMAS_WITHOUT_EXTENSIONS } from 'lib/constants/schemas'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import ActionBar from '../ActionBar'
-import { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
import { formatForeignKeys } from '../ForeignKeySelector/ForeignKeySelector.utils'
import { TEXT_TYPES } from '../SidePanelEditor.constants'
-import { ColumnField, CreateColumnPayload, UpdateColumnPayload } from '../SidePanelEditor.types'
+import type {
+ ColumnField,
+ CreateColumnPayload,
+ UpdateColumnPayload,
+} from '../SidePanelEditor.types'
import ColumnDefaultValue from './ColumnDefaultValue'
import {
generateColumnField,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
index d5afd301545..29f91559951 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
@@ -1,9 +1,9 @@
import type { PostgresColumn, PostgresTable } from '@supabase/postgres-meta'
import { find, isEqual, isNull } from 'lodash'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'
-import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
import { uuidv4 } from 'lib/helpers'
import {
ColumnField,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
index d55d02e9e09..7b398f584de 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
@@ -6,8 +6,8 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConte
import { useForeignKeyConstraintsQuery } from 'data/database/foreign-key-constraints-query'
import useTable from 'hooks/misc/useTable'
import { ForeignKeySelector } from '../ForeignKeySelector/ForeignKeySelector'
-import { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
+import type { ColumnField } from '../SidePanelEditor.types'
import { ForeignKeyRow } from '../TableEditor/ForeignKeysManagement/ForeignKeyRow'
import { checkIfRelationChanged } from '../TableEditor/ForeignKeysManagement/ForeignKeysManagement.utils'
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
index bd9443e4be8..7385da373ba 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
@@ -20,9 +20,9 @@ import {
POSTGRES_DATA_TYPE_OPTIONS,
RECOMMENDED_ALTERNATIVE_DATA_TYPE,
} from '../SidePanelEditor.constants'
-import { PostgresDataTypeOption } from '../SidePanelEditor.types'
+import type { PostgresDataTypeOption } from '../SidePanelEditor.types'
import { ListPlus } from 'lucide-react'
-import { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
+import type { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
interface ColumnTypeProps {
value: string
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
index 5a63560fa75..2a787b8f7a6 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
@@ -20,7 +20,7 @@ import {
Input,
} from 'ui'
-import { Suggestion } from './ColumnEditor.types'
+import type { Suggestion } from './ColumnEditor.types'
const MAX_SUGGESTIONS = 3
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index 16f0a622a9f..036b66936aa 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@ -1,4 +1,4 @@
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { sortBy } from 'lodash'
import { Table } from 'lucide-react'
import { Fragment, useEffect, useState } from 'react'
@@ -26,9 +26,9 @@ import { useTableEditorStateSnapshot } from 'state/table-editor'
import ActionBar from '../ActionBar'
import { NUMERICAL_TYPES, TEXT_TYPES } from '../SidePanelEditor.constants'
import { FOREIGN_KEY_CASCADE_OPTIONS } from './ForeignKeySelector.constants'
-import { ForeignKey } from './ForeignKeySelector.types'
+import type { ForeignKey } from './ForeignKeySelector.types'
import { generateCascadeActionDescription } from './ForeignKeySelector.utils'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ColumnField } from '../SidePanelEditor.types'
const EMPTY_STATE: ForeignKey = {
id: undefined,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
index 5b5352ac721..39d7f79553d 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
@@ -2,9 +2,9 @@ import * as Tooltip from '@radix-ui/react-tooltip'
import { IconHelpCircle } from 'ui'
import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'
-import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
import { getForeignKeyCascadeAction } from '../ColumnEditor/ColumnEditor.utils'
-import { ForeignKey } from './ForeignKeySelector.types'
+import type { ForeignKey } from './ForeignKeySelector.types'
export const formatForeignKeys = (fks: ForeignKeyConstraint[]): ForeignKey[] => {
return fks.map((x) => {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
index 2d22e95b91a..01735c01ae6 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
@@ -1,4 +1,4 @@
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { useState } from 'react'
import { DndProvider } from 'react-dnd'
import { HTML5Backend } from 'react-dnd-html5-backend'
@@ -10,7 +10,7 @@ import RefreshButton from 'components/grid/components/header/RefreshButton'
import { FilterPopover } from 'components/grid/components/header/filter'
import { SortPopover } from 'components/grid/components/header/sort'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
-import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
import { useTableRowsQuery } from 'data/table-rows/table-rows-query'
import { useTableQuery } from 'data/tables/table-query'
import { useRoleImpersonationStateSnapshot } from 'state/role-impersonation-state'
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
index d27be3f85ce..699a0f0cd36 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
@@ -1,5 +1,5 @@
import * as Tooltip from '@radix-ui/react-tooltip'
-import { SupaRow, SupaTable } from 'components/grid'
+import type { SupaRow, SupaTable } from 'components/grid'
import { COLUMN_MIN_WIDTH } from 'components/grid/constants'
import {
ESTIMATED_CHARACTER_PIXEL_WIDTH,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 9754a3f8ca0..f09076ef328 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -3,7 +3,7 @@ import { Button, IconEdit2, IconLink, Input, Listbox, Select } from 'ui'
import { DATETIME_TYPES, JSON_TYPES, TEXT_TYPES } from '../SidePanelEditor.constants'
import { DateTimeInput } from './DateTimeInput'
-import { RowField } from './RowEditor.types'
+import type { RowField } from './RowEditor.types'
export interface InputFieldProps {
field: RowField
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
index 38bd01beb42..9894c655630 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
@@ -1,7 +1,7 @@
import { isNull, noop } from 'lodash'
import { IconChevronRight } from 'ui'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
interface DrilldownPaneProps {
pane: number
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownViewer.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownViewer.tsx
index 8fda83bfecf..49d6f37d19f 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownViewer.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownViewer.tsx
@@ -1,7 +1,7 @@
import { isEmpty, last } from 'lodash'
import { useState } from 'react'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import DrilldownBreadCrumbs from './DrilldownBreadCrumbs'
import DrilldownPane from './DrilldownPane'
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx
index 90652720084..8995af9a952 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx
@@ -1,5 +1,5 @@
import type { PostgresTable } from '@supabase/postgres-meta'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { isEmpty, isUndefined, noop, partition } from 'lodash'
import { useEffect, useMemo, useState } from 'react'
import { SidePanel } from 'ui'
@@ -11,7 +11,7 @@ import ForeignRowSelector from './ForeignRowSelector/ForeignRowSelector'
import HeaderTitle from './HeaderTitle'
import InputField from './InputField'
import { JsonEditor } from './JsonEditor'
-import { JsonEditValue, RowField } from './RowEditor.types'
+import type { JsonEditValue, RowField } from './RowEditor.types'
import {
generateRowFields,
generateRowObjectFromFields,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
index 43e863e68f2..55e83c2a5d0 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
@@ -1,5 +1,5 @@
import type { PostgresTable } from '@supabase/postgres-meta'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import dayjs from 'dayjs'
import { compact, find, isEqual, isNull, isString, isUndefined, omitBy } from 'lodash'
@@ -10,7 +10,7 @@ import {
TIMESTAMP_TYPES,
TIME_TYPES,
} from '../SidePanelEditor.constants'
-import { RowField } from './RowEditor.types'
+import type { RowField } from './RowEditor.types'
export const generateRowFields = (
row: Dictionary<any> | undefined,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts
index 47140892b7f..a57859a09a9 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.constants.ts
@@ -1,5 +1,5 @@
import { sortBy, concat } from 'lodash'
-import { PostgresDataTypeOption } from './SidePanelEditor.types'
+import type { PostgresDataTypeOption } from './SidePanelEditor.types'
export const NUMERICAL_TYPES = [
'int2',
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
index 20810bdc520..227d0aef15d 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
@@ -10,7 +10,7 @@ import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
import { useDatabasePublicationCreateMutation } from 'data/database-publications/database-publications-create-mutation'
import { useDatabasePublicationsQuery } from 'data/database-publications/database-publications-query'
import { useDatabasePublicationUpdateMutation } from 'data/database-publications/database-publications-update-mutation'
-import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
import { entityTypeKeys } from 'data/entity-types/keys'
import { sqlKeys } from 'data/sql/keys'
import { useTableRowCreateMutation } from 'data/table-rows/table-row-create-mutation'
@@ -20,14 +20,14 @@ import { getTables } from 'data/tables/tables-query'
import { useStore, useUrlState } from 'hooks'
import { useGetImpersonatedRole } from 'state/role-impersonation-state'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { ColumnEditor, RowEditor, SpreadsheetImport, TableEditor } from '.'
-import { ForeignKey } from './ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKey } from './ForeignKeySelector/ForeignKeySelector.types'
import ForeignRowSelector from './RowEditor/ForeignRowSelector/ForeignRowSelector'
import JsonEditor from './RowEditor/JsonEditor/JsonEditor'
import { TextEditor } from './RowEditor/TextEditor'
import SchemaEditor from './SchemaEditor'
-import { ColumnField, CreateColumnPayload, UpdateColumnPayload } from './SidePanelEditor.types'
+import type { ColumnField, CreateColumnPayload, UpdateColumnPayload } from './SidePanelEditor.types'
import {
createColumn,
createTable,
@@ -37,8 +37,8 @@ import {
updateColumn,
updateTable,
} from './SidePanelEditor.utils'
-import { ImportContent } from './TableEditor/TableEditor.types'
-import { Constraint } from 'data/database/constraints-query'
+import type { ImportContent } from './TableEditor/TableEditor.types'
+import type { Constraint } from 'data/database/constraints-query'
export interface SidePanelEditorProps {
editable?: boolean
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx
index e9bf7ee13ed..5795e48f70f 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsx
@@ -1,4 +1,4 @@
-import { PostgresPrimaryKey, PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresPrimaryKey, PostgresTable } from '@supabase/postgres-meta'
import { chunk, find, isEmpty, isEqual } from 'lodash'
import Papa from 'papaparse'
import { useEffect, useState } from 'react'
@@ -24,16 +24,16 @@ import { getTables } from 'data/tables/tables-query'
import { getViews } from 'data/views/views-query'
import { useStore } from 'hooks'
import { timeout, tryParseJson } from 'lib/helpers'
-import { IMetaStore } from 'stores/pgmeta/MetaStore'
+import type { IMetaStore } from 'stores/pgmeta/MetaStore'
import {
generateCreateColumnPayload,
generateUpdateColumnPayload,
} from './ColumnEditor/ColumnEditor.utils'
-import { ForeignKey } from './ForeignKeySelector/ForeignKeySelector.types'
-import { ColumnField, CreateColumnPayload, UpdateColumnPayload } from './SidePanelEditor.types'
+import type { ForeignKey } from './ForeignKeySelector/ForeignKeySelector.types'
+import type { ColumnField, CreateColumnPayload, UpdateColumnPayload } from './SidePanelEditor.types'
import { checkIfRelationChanged } from './TableEditor/ForeignKeysManagement/ForeignKeysManagement.utils'
-import { ImportContent } from './TableEditor/TableEditor.types'
-import { Constraint } from 'data/database/constraints-query'
+import type { ImportContent } from './TableEditor/TableEditor.types'
+import type { Constraint } from 'data/database/constraints-query'
const BATCH_SIZE = 1000
const CHUNK_SIZE = 1024 * 1024 * 0.1 // 0.1MB
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx
index a80e2283b99..d21cc095668 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx
@@ -1,7 +1,7 @@
import clsx from 'clsx'
import { useState } from 'react'
import { Button, Collapsible, IconChevronDown, SidePanel } from 'ui'
-import { SpreadsheetData } from './SpreadsheetImport.types'
+import type { SpreadsheetData } from './SpreadsheetImport.types'
interface SpreadSheetImportConfigurationProps {
spreadsheetData: SpreadsheetData
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.constants.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.constants.ts
index 7c29186ce9a..e25fdbe42b2 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.constants.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.constants.ts
@@ -1,4 +1,4 @@
-import { SpreadsheetData } from './SpreadsheetImport.types'
+import type { SpreadsheetData } from './SpreadsheetImport.types'
export const UPLOAD_FILE_TYPES = [
'text/csv',
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx
index b7735a82981..3f5ca626dc6 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx
@@ -1,17 +1,17 @@
import Link from 'next/link'
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { debounce, includes, noop } from 'lodash'
import { useCallback, useEffect, useState } from 'react'
import { Button, IconExternalLink, SidePanel, Tabs } from 'ui'
import { useStore } from 'hooks'
import ActionBar from '../ActionBar'
-import { ImportContent } from '../TableEditor/TableEditor.types'
+import type { ImportContent } from '../TableEditor/TableEditor.types'
import SpreadSheetFileUpload from './SpreadSheetFileUpload'
import SpreadsheetImportConfiguration from './SpreadSheetImportConfiguration'
import SpreadSheetTextInput from './SpreadSheetTextInput'
import { EMPTY_SPREADSHEET_DATA, UPLOAD_FILE_TYPES } from './SpreadsheetImport.constants'
-import { SpreadsheetData } from './SpreadsheetImport.types'
+import type { SpreadsheetData } from './SpreadsheetImport.types'
import {
acceptedFileExtension,
parseSpreadsheet,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.types.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.types.ts
index 553a1dfa6c9..54771df8f74 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.types.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.types.ts
@@ -1,4 +1,4 @@
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
export interface SpreadsheetData {
headers: string[]
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
index 46d002c9d45..e9c0c638637 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
@@ -11,8 +11,8 @@ import {
SidePanel,
} from 'ui'
-import { PostgresTable } from '@supabase/postgres-meta'
-import { SpreadsheetData } from './SpreadsheetImport.types'
+import type { PostgresTable } from '@supabase/postgres-meta'
+import type { SpreadsheetData } from './SpreadsheetImport.types'
import SpreadsheetPreviewGrid from './SpreadsheetPreviewGrid'
const MAX_ROWS = 20
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
index b9104a5154e..141518e4fc6 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
@@ -1,13 +1,13 @@
import { noop } from 'lodash'
import { Checkbox, IconMenu, IconSettings, IconX, Input, Popover } from 'ui'
-import { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
+import type { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
import { EMPTY_ARR, EMPTY_OBJ } from 'lib/void'
import { typeExpressionSuggestions } from '../ColumnEditor/ColumnEditor.constants'
-import { Suggestion } from '../ColumnEditor/ColumnEditor.types'
+import type { Suggestion } from '../ColumnEditor/ColumnEditor.types'
import ColumnType from '../ColumnEditor/ColumnType'
import InputWithSuggestions from '../ColumnEditor/InputWithSuggestions'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ColumnField } from '../SidePanelEditor.types'
/**
* [Joshen] For context:
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index 72decdd4b43..c0c183f9956 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -10,13 +10,13 @@ import {
import { Alert, Button, IconEdit, IconExternalLink, IconHelpCircle, IconKey, IconTrash } from 'ui'
import InformationBox from 'components/ui/InformationBox'
-import { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
+import type { EnumeratedType } from 'data/enumerated-types/enumerated-types-query'
import { generateColumnField } from '../ColumnEditor/ColumnEditor.utils'
-import { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
import { TEXT_TYPES } from '../SidePanelEditor.constants'
-import { ColumnField, ExtendedPostgresRelationship } from '../SidePanelEditor.types'
+import type { ColumnField, ExtendedPostgresRelationship } from '../SidePanelEditor.types'
import Column from './Column'
-import { ImportContent } from './TableEditor.types'
+import type { ImportContent } from './TableEditor.types'
interface ColumnManagementProps {
columns?: ColumnField[]
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
index 3787487df2d..f0ae05142db 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
@@ -5,7 +5,7 @@ import SVG from 'react-inlinesvg'
import { Badge, Button, IconArrowRight } from 'ui'
import { BASE_PATH } from 'lib/constants'
-import { ForeignKey } from '../../ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKey } from '../../ForeignKeySelector/ForeignKeySelector.types'
interface ForeignKeyProps {
foreignKey: ForeignKey
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx
index 2115fb9e03c..f016c0f7416 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.tsx
@@ -6,11 +6,11 @@ import AlertError from 'components/ui/AlertError'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useForeignKeyConstraintsQuery } from 'data/database/foreign-key-constraints-query'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { ForeignKeySelector } from '../../ForeignKeySelector/ForeignKeySelector'
-import { TableField } from '../TableEditor.types'
+import type { TableField } from '../TableEditor.types'
import { ForeignKeyRow } from './ForeignKeyRow'
-import { ForeignKey } from '../../ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKey } from '../../ForeignKeySelector/ForeignKeySelector.types'
import { checkIfRelationChanged } from './ForeignKeysManagement.utils'
import { uuidv4 } from 'lib/helpers'
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.utils.ts
index 7d8c54e726d..13f38a6092f 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeysManagement.utils.ts
@@ -1,5 +1,5 @@
-import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
-import { ForeignKey } from '../../ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { ForeignKey } from '../../ForeignKeySelector/ForeignKeySelector.types'
import { isEqual } from 'lodash'
export const checkIfRelationChanged = (existing: ForeignKeyConstraint, state: ForeignKey) => {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts
index 069d613bdf0..3a8fbc9430e 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.constants.ts
@@ -1,5 +1,5 @@
import { uuidv4 } from 'lib/helpers'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ColumnField } from '../SidePanelEditor.types'
export const DEFAULT_COLUMNS: ColumnField[] = [
{
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
index c380a34b371..264958f5f59 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx
@@ -22,15 +22,15 @@ import { EXCLUDED_SCHEMAS_WITHOUT_EXTENSIONS } from 'lib/constants/schemas'
import { useTableEditorStateSnapshot } from 'state/table-editor'
import { SpreadsheetImport } from '../'
import ActionBar from '../ActionBar'
-import { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
+import type { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'
import { formatForeignKeys } from '../ForeignKeySelector/ForeignKeySelector.utils'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ColumnField } from '../SidePanelEditor.types'
import ColumnManagement from './ColumnManagement'
import { ForeignKeysManagement } from './ForeignKeysManagement/ForeignKeysManagement'
import HeaderTitle from './HeaderTitle'
import RLSDisableModalContent from './RLSDisableModal'
import { DEFAULT_COLUMNS } from './TableEditor.constants'
-import { ImportContent, TableField } from './TableEditor.types'
+import type { ImportContent, TableField } from './TableEditor.types'
import {
formatImportedContentToColumnFields,
generateTableField,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.types.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.types.ts
index 18cd6f1f87c..32e17c65317 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.types.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.types.ts
@@ -1,5 +1,5 @@
-import { Dictionary } from 'types'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { Dictionary } from 'types'
+import type { ColumnField } from '../SidePanelEditor.types'
export interface TableField {
id: number
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.utils.ts
index c79570968ce..82bd8a63d67 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.utils.ts
@@ -1,14 +1,14 @@
import { some } from 'lodash'
import type { PostgresColumn, PostgresTable } from '@supabase/postgres-meta'
-import { ImportContent, TableField } from './TableEditor.types'
+import type { ImportContent, TableField } from './TableEditor.types'
import { DEFAULT_COLUMNS } from './TableEditor.constants'
-import { ColumnField } from '../SidePanelEditor.types'
+import type { ColumnField } from '../SidePanelEditor.types'
import {
generateColumnField,
generateColumnFieldFromPostgresColumn,
} from '../ColumnEditor/ColumnEditor.utils'
-import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
+import type { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'
export const validateFields = (field: TableField) => {
const errors = {} as any
diff --git a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
index 8adbe4342f4..85cd6b28494 100644
--- a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
@@ -20,12 +20,12 @@ import { sqlKeys } from 'data/sql/keys'
import { useTableRowUpdateMutation } from 'data/table-rows/table-row-update-mutation'
import { useCheckPermissions, useLatest, useStore, useUrlState } from 'hooks'
import useEntityType from 'hooks/misc/useEntityType'
-import { TableLike } from 'hooks/misc/useTable'
+import type { TableLike } from 'hooks/misc/useTable'
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
import { EMPTY_ARR } from 'lib/void'
import { useGetImpersonatedRole } from 'state/role-impersonation-state'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { Dictionary, SchemaView } from 'types'
+import type { Dictionary, SchemaView } from 'types'
import GridHeaderActions from './GridHeaderActions'
import NotFoundState from './NotFoundState'
import { SidePanelEditor } from './SidePanelEditor'
diff --git a/apps/studio/components/layouts/APIAuthorizationLayout.tsx b/apps/studio/components/layouts/APIAuthorizationLayout.tsx
index 08a179110f5..960dd6f8f83 100644
--- a/apps/studio/components/layouts/APIAuthorizationLayout.tsx
+++ b/apps/studio/components/layouts/APIAuthorizationLayout.tsx
@@ -3,7 +3,7 @@ import { BASE_PATH } from 'lib/constants'
import { useTheme } from 'next-themes'
import Head from 'next/head'
import Image from 'next/legacy/image'
-import { PropsWithChildren } from 'react'
+import type { PropsWithChildren } from 'react'
export interface APIAuthorizationLayoutProps {}
diff --git a/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx b/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx
index ecbef0713e5..9ff40c78187 100644
--- a/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx
+++ b/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx
@@ -7,7 +7,7 @@ import { useFlag, useSelectedOrganization, withAuth } from 'hooks'
import { useSignOut } from 'lib/auth'
import { IS_PLATFORM } from 'lib/constants'
import SettingsLayout from '../SettingsLayout/SettingsLayout'
-import { SidebarSection } from './AccountLayout.types'
+import type { SidebarSection } from './AccountLayout.types'
import WithSidebar from './WithSidebar'
export interface AccountLayoutProps {
diff --git a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx
index 81b4f347cfc..2a308c682cd 100644
--- a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx
+++ b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx
@@ -5,7 +5,7 @@ import { Badge, IconArrowUpRight, IconLogOut, Menu } from 'ui'
import { useFlag } from 'hooks'
import { LayoutHeader } from '../ProjectLayout/LayoutHeader'
-import { SidebarLink, SidebarSection } from './AccountLayout.types'
+import type { SidebarLink, SidebarSection } from './AccountLayout.types'
interface WithSidebarProps {
title: string
diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx
index 4dd459aeb71..dfd40edd4f6 100644
--- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx
+++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx
@@ -3,7 +3,7 @@ import {
EmptyIntegrationConnection,
IntegrationConnection,
} from 'components/interfaces/Integrations/IntegrationPanels'
-import { GitHubConnection } from 'data/integrations/github-connections-query'
+import type { GitHubConnection } from 'data/integrations/github-connections-query'
import { useSelectedOrganization } from 'hooks'
import { useSidePanelsStateSnapshot } from 'state/side-panels'
import {
diff --git a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
index 3d7fa037419..35f7477dc9a 100644
--- a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
+++ b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
@@ -8,7 +8,7 @@ import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import { ProjectInfo, useProjectsQuery } from 'data/projects/projects-query'
import { useIsFeatureEnabled, useSelectedOrganization, useSelectedProject } from 'hooks'
import { IS_PLATFORM } from 'lib/constants'
-import { Organization } from 'types'
+import type { Organization } from 'types'
import {
Button,
CommandEmpty_Shadcn_,
diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
index 4704150201f..bbdf9edad7e 100644
--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
@@ -1,4 +1,4 @@
-import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
+import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
import { IS_PLATFORM } from 'lib/constants'
export const generateAuthMenu = (
diff --git a/apps/studio/components/layouts/BillingLayout.tsx b/apps/studio/components/layouts/BillingLayout.tsx
index abb764fd1cc..b62bd596fac 100644
--- a/apps/studio/components/layouts/BillingLayout.tsx
+++ b/apps/studio/components/layouts/BillingLayout.tsx
@@ -1,5 +1,5 @@
import Link from 'next/link'
-import { PropsWithChildren } from 'react'
+import type { PropsWithChildren } from 'react'
import { ProjectLayout } from 'components/layouts'
import { useSelectedOrganization, useSelectedProject, withAuth } from 'hooks'
diff --git a/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts b/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts
index 5ae95f71503..4f6f6f81c07 100644
--- a/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts
+++ b/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts
@@ -1,5 +1,5 @@
-import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
-import { Project } from 'data/projects/project-detail-query'
+import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
+import type { Project } from 'data/projects/project-detail-query'
import { IS_PLATFORM } from 'lib/constants'
export const generateDatabaseMenu = (
diff --git a/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx b/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx
index beb9bf2efce..dd1efef6c57 100644
--- a/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx
+++ b/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx
@@ -1,5 +1,5 @@
import SVG from 'react-inlinesvg'
-import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
+import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
import { IconBook, IconBookOpen } from 'ui'
import { BASE_PATH } from 'lib/constants'
diff --git a/apps/studio/components/layouts/FunctionsLayout.tsx b/apps/studio/components/layouts/FunctionsLayout.tsx
index 2247126ac9e..a41dd3b0ab1 100644
--- a/apps/studio/components/layouts/FunctionsLayout.tsx
+++ b/apps/studio/components/layouts/FunctionsLayout.tsx
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { observer } from 'mobx-react-lite'
import Link from 'next/link'
-import { PropsWithChildren } from 'react'
+import type { PropsWithChildren } from 'react'
import { Button, IconCode, IconExternalLink } from 'ui'
import { useIsAPIDocsSidePanelEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'
diff --git a/apps/studio/components/layouts/IntegrationsLayout/Integrations.utils.ts b/apps/studio/components/layouts/IntegrationsLayout/Integrations.utils.ts
index 0d19f996f5c..3875773143c 100644
--- a/apps/studio/components/layouts/IntegrationsLayout/Integrations.utils.ts
+++ b/apps/studio/components/layouts/IntegrationsLayout/Integrations.utils.ts
@@ -1,6 +1,6 @@
-import { IntegrationsData } from 'data/integrations/integrations-query'
-import { IntegrationName } from 'data/integrations/integrations.types'
-import { Organization } from 'types'
+import type { IntegrationsData } from 'data/integrations/integrations-query'
+import type { IntegrationName } from 'data/integrations/integrations.types'
+import type { Organization } from 'types'
export function getHasInstalledObject({
integrationName,
diff --git a/apps/studio/components/layouts/LogsLayout/LogsMenu.utils.ts b/apps/studio/components/layouts/LogsLayout/LogsMenu.utils.ts
index d4fd1fd22a2..5c34890d454 100644
--- a/apps/studio/components/layouts/LogsLayout/LogsMenu.utils.ts
+++ b/apps/studio/components/layouts/LogsLayout/LogsMenu.utils.ts
@@ -1,5 +1,8 @@
-import { ProductMenuGroup, ProductMenuGroupItem } from 'components/ui/ProductMenu/ProductMenu.types'
-import { Project } from 'data/projects/project-detail-query'
+import type {
+ ProductMenuGroup,
+ ProductMenuGroupItem,
+} from 'components/ui/ProductMenu/ProductMenu.types'
+import type { Project } from 'data/projects/project-detail-query'
import { IS_PLATFORM } from 'lib/constants'
export const generateLogsMenu = (
diff --git a/apps/studio/components/layouts/OrganizationLayout.tsx b/apps/studio/components/layouts/OrganizationLayout.tsx
index 58093c0e8af..7e18c7a7df7 100644
--- a/apps/studio/components/layouts/OrganizationLayout.tsx
+++ b/apps/studio/components/layouts/OrganizationLayout.tsx
@@ -1,5 +1,5 @@
import { useRouter } from 'next/router'
-import { PropsWithChildren } from 'react'
+import type { PropsWithChildren } from 'react'
import { useParams } from 'common'
import { useFlag, useIsFeatureEnabled, useSelectedOrganization } from 'hooks'
@@ -13,7 +13,6 @@ const OrganizationLayout = ({ children }: PropsWithChildren<{}>) => {
const selectedOrganization = useSelectedOrganization()
const router = useRouter()
const { slug } = useParams()
- const id = router.asPath.split('/').at(-1)?.split('?')[0]?.split('#')[0]
const invoicesEnabled = useIsFeatureEnabled('billing:invoices')
diff --git a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
index 3944a18b3a4..3ddee584421 100644
--- a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
@@ -7,7 +7,7 @@ import { Badge, Button, IconExternalLink, IconLoader, IconMonitor, IconServer }
import ShimmerLine from 'components/ui/ShimmerLine'
import { setProjectPostgrestStatus } from 'data/projects/projects-query'
import pingPostgrest from 'lib/pingPostgrest'
-import { Project } from 'data/projects/project-detail-query'
+import type { Project } from 'data/projects/project-detail-query'
export interface ConnectingStateProps {
project: Project
diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx
index c525b3c1011..355bf61de16 100644
--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationRow.tsx
@@ -9,10 +9,10 @@ import { Button, IconArchive, IconExternalLink } from 'ui'
import { Markdown } from 'components/interfaces/Markdown'
import { CriticalIcon, WarningIcon } from 'components/ui/Icons'
-import { ItemRenderer } from 'components/ui/InfiniteList'
+import type { ItemRenderer } from 'components/ui/InfiniteList'
import { Notification, NotificationData } from 'data/notifications/notifications-v2-query'
import { ProjectInfo } from 'data/projects/projects-query'
-import { Organization } from 'types'
+import type { Organization } from 'types'
interface NotificationRowProps {
setRowHeight: (idx: number, height: number) => void
diff --git a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx
index f584fcd1a00..30ecb4d6c66 100644
--- a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx
@@ -1,5 +1,5 @@
-import { Route } from 'components/ui/ui.types'
-import { Project } from 'data/projects/project-detail-query'
+import type { Route } from 'components/ui/ui.types'
+import type { Project } from 'data/projects/project-detail-query'
import { IS_PLATFORM, PROJECT_STATUS } from 'lib/constants'
import {
Auth,
diff --git a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconLink.tsx b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconLink.tsx
index 0e1dc0770c6..8849eac61e7 100644
--- a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconLink.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconLink.tsx
@@ -3,7 +3,7 @@ import Link from 'next/link'
import { AnchorHTMLAttributes, forwardRef } from 'react'
import { cn } from 'ui'
-import { Route } from 'components/ui/ui.types'
+import type { Route } from 'components/ui/ui.types'
import { useAppStateSnapshot } from 'state/app-state'
interface NavigationIconButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts
index ca762cb2df0..dc5230b9404 100644
--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts
+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts
@@ -1,7 +1,7 @@
-import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
-import { Project } from 'data/projects/project-detail-query'
+import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
+import type { Project } from 'data/projects/project-detail-query'
import { IS_PLATFORM, PROJECT_STATUS } from 'lib/constants'
-import { Organization } from 'types'
+import type { Organization } from 'types'
export const generateSettingsMenu = (
ref?: string,
diff --git a/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts b/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts
index e6d83293fb0..c8d612494a7 100644
--- a/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts
+++ b/apps/studio/components/layouts/RealtimeLayout/RealtimeMenu.utils.ts
@@ -1,5 +1,5 @@
-import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
-import { Project } from 'data/projects/project-detail-query'
+import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
+import type { Project } from 'data/projects/project-detail-query'
export const generateRealtimeMenu = (project?: Project): ProductMenuGroup[] => {
const ref = project?.ref ?? 'default'
diff --git a/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
index 20c100e91db..d4e8fac4baa 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
@@ -27,7 +27,7 @@ import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
import CopyButton from 'components/ui/CopyButton'
import { useContentDeleteMutation } from 'data/content/content-delete-mutation'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useSqlEditorStateSnapshot } from 'state/sql-editor'
import { QueryItemActions } from './QueryItemActions'
diff --git a/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx b/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx
index a01b5a7c930..2eedc7458d9 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/QueryItemActions.tsx
@@ -18,7 +18,7 @@ import {
} from 'ui'
import { createSqlSnippetSkeleton } from 'components/interfaces/SQLEditor/SQLEditor.utils'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
import { useCheckPermissions, useSelectedProject, useStore } from 'hooks'
import { uuidv4 } from 'lib/helpers'
import { useProfile } from 'lib/profile'
diff --git a/apps/studio/components/layouts/StorageLayout/BucketRow.tsx b/apps/studio/components/layouts/StorageLayout/BucketRow.tsx
index fb54059a4d3..3d69401793b 100644
--- a/apps/studio/components/layouts/StorageLayout/BucketRow.tsx
+++ b/apps/studio/components/layouts/StorageLayout/BucketRow.tsx
@@ -17,7 +17,7 @@ import {
IconXCircle,
} from 'ui'
-import { Bucket } from 'data/storage/buckets-query'
+import type { Bucket } from 'data/storage/buckets-query'
import { useCheckPermissions } from 'hooks'
export interface BucketRowProps {
diff --git a/apps/studio/components/layouts/StorageLayout/StorageBucketsError.tsx b/apps/studio/components/layouts/StorageLayout/StorageBucketsError.tsx
index c5bddff3a9c..247847fdae4 100644
--- a/apps/studio/components/layouts/StorageLayout/StorageBucketsError.tsx
+++ b/apps/studio/components/layouts/StorageLayout/StorageBucketsError.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import Link from 'next/link'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { Alert, Button } from 'ui'
export interface StorageBucketsErrorProps {
diff --git a/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx b/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx
index f272bb2d967..594e943b816 100644
--- a/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx
+++ b/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx
@@ -16,7 +16,7 @@ import {
import CreateBucketModal from 'components/interfaces/Storage/CreateBucketModal'
import EditBucketModal from 'components/interfaces/Storage/EditBucketModal'
-import { StorageBucket } from 'components/interfaces/Storage/Storage.types'
+import type { StorageBucket } from 'components/interfaces/Storage/Storage.types'
import { DeleteBucketModal } from 'components/to-be-cleaned/Storage'
import { EmptyBucketModal } from 'components/to-be-cleaned/Storage/EmptyBucketModal'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
diff --git a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index f72e396098a..6f68ae1466a 100644
--- a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -20,9 +20,9 @@ import {
} from 'ui'
import { parseSupaTable } from 'components/grid'
-import { ItemRenderer } from 'components/ui/InfiniteList'
+import type { ItemRenderer } from 'components/ui/InfiniteList'
import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'
-import { Entity } from 'data/entity-types/entity-type-query'
+import type { Entity } from 'data/entity-types/entity-type-query'
import { fetchAllTableRows } from 'data/table-rows/table-rows-query'
import { getTable } from 'data/tables/table-query'
import { useStore } from 'hooks'
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 6d2afdd80df..96d2134c589 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -57,11 +57,9 @@ const TableEditorMenu = () => {
isError,
error,
refetch,
- isRefetching,
hasNextPage,
isFetchingNextPage,
fetchNextPage,
- isPreviousData: isSearching,
} = useEntityTypesQuery(
{
projectRef: project?.ref,
diff --git a/apps/studio/components/layouts/VercelIntegrationLayout.tsx b/apps/studio/components/layouts/VercelIntegrationLayout.tsx
index 8c42daffedb..34bf4f2983a 100644
--- a/apps/studio/components/layouts/VercelIntegrationLayout.tsx
+++ b/apps/studio/components/layouts/VercelIntegrationLayout.tsx
@@ -1,5 +1,5 @@
import Head from 'next/head'
-import { PropsWithChildren } from 'react'
+import type { PropsWithChildren } from 'react'
import Divider from 'components/ui/Divider'
import { BASE_PATH } from 'lib/constants'
diff --git a/apps/studio/components/layouts/WizardLayout.tsx b/apps/studio/components/layouts/WizardLayout.tsx
index 5e51f9721b8..d181a263a1a 100644
--- a/apps/studio/components/layouts/WizardLayout.tsx
+++ b/apps/studio/components/layouts/WizardLayout.tsx
@@ -5,7 +5,7 @@ import { IconChevronRight } from 'ui'
import { withAuth } from 'hooks'
import { BASE_PATH } from 'lib/constants'
-import { Organization, Project } from 'types'
+import type { Organization, Project } from 'types'
import { FeedbackDropdown } from './ProjectLayout/LayoutHeader/FeedbackDropdown'
import HelpPopover from './ProjectLayout/LayoutHeader/HelpPopover'
diff --git a/apps/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/apps/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
index e996f82213c..2b7f8062ea8 100644
--- a/apps/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
+++ b/apps/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
@@ -1,4 +1,4 @@
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import { isUndefined } from 'lodash'
import { useRouter } from 'next/router'
import { PropsWithChildren, useEffect, useState } from 'react'
@@ -7,7 +7,7 @@ import { Button, IconActivity, IconAlertCircle, IconBarChart, IconLoader } from
import AreaChart from 'components/ui/Charts/AreaChart'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ChartData } from './ChartHandler.types'
+import type { ChartData } from './ChartHandler.types'
import { BarChart } from './ChartRenderer'
interface ChartHandlerProps {
diff --git a/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx b/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx
index 3bf0fd86d25..c8ec9060e0c 100644
--- a/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx
+++ b/apps/studio/components/to-be-cleaned/Storage/EmptyBucketModal.tsx
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
import { useBucketEmptyMutation } from 'data/storage/bucket-empty-mutation'
-import { Bucket } from 'data/storage/buckets-query'
+import type { Bucket } from 'data/storage/buckets-query'
import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'
import {
AlertDescription_Shadcn_,
diff --git a/apps/studio/components/to-be-cleaned/Storage/Storage.utils.ts b/apps/studio/components/to-be-cleaned/Storage/Storage.utils.ts
index 79406cf3487..5a50eab4ec4 100644
--- a/apps/studio/components/to-be-cleaned/Storage/Storage.utils.ts
+++ b/apps/studio/components/to-be-cleaned/Storage/Storage.utils.ts
@@ -1,6 +1,6 @@
import { groupBy, difference } from 'lodash'
import { STORAGE_CLIENT_LIBRARY_MAPPINGS } from './Storage.constants'
-import { StoragePolicyFormField } from 'components/interfaces/Storage/Storage.types'
+import type { StoragePolicyFormField } from 'components/interfaces/Storage/Storage.types'
const shortHash = (str: string) => {
let hash = 0
diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorer.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorer.tsx
index 7b5b02dcb99..9392c7e5db9 100644
--- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorer.tsx
+++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorer.tsx
@@ -7,7 +7,7 @@ import FolderContextMenu from './FolderContextMenu'
import ColumnContextMenu from './ColumnContextMenu'
import FileExplorerColumn from './FileExplorerColumn'
import { noop } from 'lodash'
-import { StorageColumn } from '../Storage.types'
+import type { StorageColumn } from '../Storage.types'
export interface FileExplorerProps {
view: string
diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx
index b2ccb1cf02a..19a316628d6 100644
--- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx
+++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx
@@ -15,7 +15,7 @@ import {
STORAGE_ROW_TYPES,
STORAGE_VIEWS,
} from '../Storage.constants'
-import { StorageColumn } from '../Storage.types'
+import type { StorageColumn } from '../Storage.types'
import FileExplorerRow from './FileExplorerRow'
const DragOverOverlay = ({ isOpen, onDragLeave, onDrop, folderIsEmpty }: any) => {
diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
index 05ceb155cc9..6ece67a3f98 100644
--- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
+++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
@@ -28,7 +28,7 @@ import {
IconTrash2,
} from 'ui'
-import { ItemRenderer } from 'components/ui/InfiniteList'
+import type { ItemRenderer } from 'components/ui/InfiniteList'
import { useCheckPermissions } from 'hooks'
import { BASE_PATH } from 'lib/constants'
import { formatBytes } from 'lib/helpers'
diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx
index 1f8bbb6ab7f..0c0beb8cbd1 100644
--- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx
+++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/StorageExplorer.tsx
@@ -5,7 +5,7 @@ import { useEffect, useRef, useState } from 'react'
import { useProjectSettingsQuery } from 'data/config/project-settings-query'
import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'
-import { Bucket } from 'data/storage/buckets-query'
+import type { Bucket } from 'data/storage/buckets-query'
import { useStore } from 'hooks'
import { DEFAULT_PROJECT_API_SERVICE_ID } from 'lib/constants'
import { copyToClipboard } from 'lib/helpers'
diff --git a/apps/studio/components/ui/AlertError.tsx b/apps/studio/components/ui/AlertError.tsx
index 331e2c1beb1..4bb1a367db3 100644
--- a/apps/studio/components/ui/AlertError.tsx
+++ b/apps/studio/components/ui/AlertError.tsx
@@ -1,5 +1,5 @@
import Link from 'next/link'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import {
AlertDescription_Shadcn_,
AlertTitle_Shadcn_,
diff --git a/apps/studio/components/ui/Charts/AreaChart.tsx b/apps/studio/components/ui/Charts/AreaChart.tsx
index d0f0e0bbfa0..4d6fcef6861 100644
--- a/apps/studio/components/ui/Charts/AreaChart.tsx
+++ b/apps/studio/components/ui/Charts/AreaChart.tsx
@@ -4,7 +4,7 @@ import utc from 'dayjs/plugin/utc'
import { useState } from 'react'
import { Area, AreaChart as RechartAreaChart, Tooltip, XAxis } from 'recharts'
import ChartHeader from './ChartHeader'
-import { CommonChartProps, Datum } from './Charts.types'
+import type { CommonChartProps, Datum } from './Charts.types'
import { numberFormatter, useChartSize } from './Charts.utils'
import ChartNoData from './NoDataPlaceholder'
dayjs.extend(utc)
diff --git a/apps/studio/components/ui/Charts/BarChart.tsx b/apps/studio/components/ui/Charts/BarChart.tsx
index 9f843aa9426..2e45ba94213 100644
--- a/apps/studio/components/ui/Charts/BarChart.tsx
+++ b/apps/studio/components/ui/Charts/BarChart.tsx
@@ -3,9 +3,9 @@ import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
import { useState } from 'react'
import { Bar, BarChart as RechartBarChart, Cell, Tooltip, XAxis, Legend } from 'recharts'
-import { CategoricalChartState } from 'recharts/types/chart/generateCategoricalChart'
+import type { CategoricalChartState } from 'recharts/types/chart/generateCategoricalChart'
import ChartHeader from './ChartHeader'
-import { CommonChartProps, Datum } from './Charts.types'
+import type { CommonChartProps, Datum } from './Charts.types'
import { numberFormatter, useChartSize } from './Charts.utils'
import ChartNoData from './NoDataPlaceholder'
dayjs.extend(utc)
diff --git a/apps/studio/components/ui/Charts/Charts.utils.tsx b/apps/studio/components/ui/Charts/Charts.utils.tsx
index 34c9f6783f1..89acca19e3b 100644
--- a/apps/studio/components/ui/Charts/Charts.utils.tsx
+++ b/apps/studio/components/ui/Charts/Charts.utils.tsx
@@ -2,7 +2,7 @@ import dayjs from 'dayjs'
import React, { useMemo } from 'react'
import { ResponsiveContainer } from 'recharts'
import { DateTimeFormats } from './Charts.constants'
-import { CommonChartProps, StackedChartProps } from './Charts.types'
+import type { CommonChartProps, StackedChartProps } from './Charts.types'
import utc from 'dayjs/plugin/utc'
dayjs.extend(utc)
diff --git a/apps/studio/components/ui/Charts/StackedBarChart.tsx b/apps/studio/components/ui/Charts/StackedBarChart.tsx
index 3c252cc7039..1bf9b9a4528 100644
--- a/apps/studio/components/ui/Charts/StackedBarChart.tsx
+++ b/apps/studio/components/ui/Charts/StackedBarChart.tsx
@@ -10,7 +10,7 @@ import {
genStackColorScales,
ValidStackColor,
} from './Charts.constants'
-import { CommonChartProps } from './Charts.types'
+import type { CommonChartProps } from './Charts.types'
import {
numberFormatter,
precisionFormatter,
diff --git a/apps/studio/components/ui/CodeEditor/Providers/PgSQLCompletionProvider.ts b/apps/studio/components/ui/CodeEditor/Providers/PgSQLCompletionProvider.ts
index e9534735c9b..599c67c4e04 100644
--- a/apps/studio/components/ui/CodeEditor/Providers/PgSQLCompletionProvider.ts
+++ b/apps/studio/components/ui/CodeEditor/Providers/PgSQLCompletionProvider.ts
@@ -1,8 +1,8 @@
-import { RefObject } from 'react'
+import type { RefObject } from 'react'
import BackwardIterator from './BackwardIterator'
-import { Schema } from 'data/database/schemas-query'
-import { TableColumn } from 'data/database/table-columns-query'
-import { DatabaseFunction } from 'data/database/functions-query'
+import type { Schema } from 'data/database/schemas-query'
+import type { TableColumn } from 'data/database/table-columns-query'
+import type { DatabaseFunction } from 'data/database/functions-query'
// [Joshen] Needs to be fixed
diff --git a/apps/studio/components/ui/DatePicker/TimeSplitInput.tsx b/apps/studio/components/ui/DatePicker/TimeSplitInput.tsx
index b86024b611c..9021eb08793 100644
--- a/apps/studio/components/ui/DatePicker/TimeSplitInput.tsx
+++ b/apps/studio/components/ui/DatePicker/TimeSplitInput.tsx
@@ -3,7 +3,7 @@ import { IconClock } from 'ui'
import { format } from 'date-fns'
-import { TimeSplitInputProps, TimeType } from './DatePicker.types'
+import type { TimeSplitInputProps, TimeType } from './DatePicker.types'
const TimeSplitInput = ({
type,
diff --git a/apps/studio/components/ui/Flag/FlagProvider.tsx b/apps/studio/components/ui/Flag/FlagProvider.tsx
index e949bca4201..57f11d9fd69 100644
--- a/apps/studio/components/ui/Flag/FlagProvider.tsx
+++ b/apps/studio/components/ui/Flag/FlagProvider.tsx
@@ -1,4 +1,4 @@
-import { User } from '@supabase/supabase-js'
+import type { User } from '@supabase/supabase-js'
import { PropsWithChildren, useEffect, useState } from 'react'
import { IS_PLATFORM } from 'lib/constants'
diff --git a/apps/studio/components/ui/OveragesBanner/OveragesBanner.utils.ts b/apps/studio/components/ui/OveragesBanner/OveragesBanner.utils.ts
index 9011364f955..0a33a6342ce 100644
--- a/apps/studio/components/ui/OveragesBanner/OveragesBanner.utils.ts
+++ b/apps/studio/components/ui/OveragesBanner/OveragesBanner.utils.ts
@@ -1,4 +1,4 @@
-import { OrgMetricsUsage } from 'data/usage/org-usage-query'
+import type { OrgMetricsUsage } from 'data/usage/org-usage-query'
export const getResourcesExceededLimitsOrg = (usageMetrics: OrgMetricsUsage[]): string[] => {
if (!usageMetrics.length) return []
diff --git a/apps/studio/components/ui/ProductMenu/ProductMenu.tsx b/apps/studio/components/ui/ProductMenu/ProductMenu.tsx
index 7f9e952de2c..2993d7d1535 100644
--- a/apps/studio/components/ui/ProductMenu/ProductMenu.tsx
+++ b/apps/studio/components/ui/ProductMenu/ProductMenu.tsx
@@ -1,6 +1,6 @@
import { Badge, Menu } from 'ui'
-import { ProductMenuGroup } from './ProductMenu.types'
+import type { ProductMenuGroup } from './ProductMenu.types'
import ProductMenuItem from './ProductMenuItem'
interface ProductMenuProps {
diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils.ts b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils.ts
index 8665089241b..23e35345f36 100644
--- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils.ts
+++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils.ts
@@ -1,4 +1,4 @@
-import { ResourceWarning } from 'data/usage/resource-warnings-query'
+import type { ResourceWarning } from 'data/usage/resource-warnings-query'
import { RESOURCE_WARNING_MESSAGES } from './ResourceExhaustionWarningBanner.constants'
export const getWarningContent = (
diff --git a/apps/studio/data/__templates/resource-query.ts b/apps/studio/data/__templates/resource-query.ts
index 6fa63c86e78..0f0b0501376 100644
--- a/apps/studio/data/__templates/resource-query.ts
+++ b/apps/studio/data/__templates/resource-query.ts
@@ -2,7 +2,7 @@ import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query
import { useCallback } from 'react'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { resourceKeys } from './keys'
export type ResourceVariables = {
diff --git a/apps/studio/data/__templates/resource-update-mutation.ts b/apps/studio/data/__templates/resource-update-mutation.ts
index 2fd34512f8f..ae277f09c54 100644
--- a/apps/studio/data/__templates/resource-update-mutation.ts
+++ b/apps/studio/data/__templates/resource-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { handleError, patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { resourceKeys } from './keys'
export type ResourceUpdateVariables = {
diff --git a/apps/studio/data/__templates/resources-query.ts b/apps/studio/data/__templates/resources-query.ts
index 5ed424df8b4..9d15bd55ee7 100644
--- a/apps/studio/data/__templates/resources-query.ts
+++ b/apps/studio/data/__templates/resources-query.ts
@@ -2,7 +2,7 @@ import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query
import { useCallback } from 'react'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { resourceKeys } from './keys'
export type ResourcesVariables = {
diff --git a/apps/studio/data/access-tokens/access-tokens-create-mutation.ts b/apps/studio/data/access-tokens/access-tokens-create-mutation.ts
index 6fb92b70ed4..6afa1a4d01c 100644
--- a/apps/studio/data/access-tokens/access-tokens-create-mutation.ts
+++ b/apps/studio/data/access-tokens/access-tokens-create-mutation.ts
@@ -2,8 +2,8 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { isResponseOk, post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
-import { AccessToken } from './access-tokens-query'
+import type { ResponseError } from 'types'
+import type { AccessToken } from './access-tokens-query'
import { accessTokenKeys } from './keys'
export type AccessTokenCreateVariables = {
diff --git a/apps/studio/data/access-tokens/access-tokens-delete-mutation.ts b/apps/studio/data/access-tokens/access-tokens-delete-mutation.ts
index f94f5734be6..84e7047ecad 100644
--- a/apps/studio/data/access-tokens/access-tokens-delete-mutation.ts
+++ b/apps/studio/data/access-tokens/access-tokens-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { delete_, isResponseOk } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { accessTokenKeys } from './keys'
export type AccessTokenDeleteVariables = {
diff --git a/apps/studio/data/ai/sql-debug-mutation.ts b/apps/studio/data/ai/sql-debug-mutation.ts
index 61843e3f308..32f3a462704 100644
--- a/apps/studio/data/ai/sql-debug-mutation.ts
+++ b/apps/studio/data/ai/sql-debug-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { isResponseOk, post } from 'lib/common/fetch'
import { BASE_PATH } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SqlDebugResponse = {
solution: string
diff --git a/apps/studio/data/ai/sql-edit-mutation.ts b/apps/studio/data/ai/sql-edit-mutation.ts
index 891bd7ace12..0127f17d1bf 100644
--- a/apps/studio/data/ai/sql-edit-mutation.ts
+++ b/apps/studio/data/ai/sql-edit-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { isResponseOk, post } from 'lib/common/fetch'
import { BASE_PATH } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SqlEditResponse = {
sql: string
diff --git a/apps/studio/data/ai/sql-generate-mutation.ts b/apps/studio/data/ai/sql-generate-mutation.ts
index fa076045b2c..e26b54a0776 100644
--- a/apps/studio/data/ai/sql-generate-mutation.ts
+++ b/apps/studio/data/ai/sql-generate-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { isResponseOk, post } from 'lib/common/fetch'
import { BASE_PATH } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SqlGenerateResponse = {
title: string
diff --git a/apps/studio/data/ai/sql-title-mutation.ts b/apps/studio/data/ai/sql-title-mutation.ts
index 339cb0ec66a..7306ec2df7a 100644
--- a/apps/studio/data/ai/sql-title-mutation.ts
+++ b/apps/studio/data/ai/sql-title-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { isResponseOk, post } from 'lib/common/fetch'
import { BASE_PATH } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SqlTitleGenerateResponse = {
title: string
diff --git a/apps/studio/data/analytics/infra-monitoring-query.ts b/apps/studio/data/analytics/infra-monitoring-query.ts
index 6f8101451af..ce73629d8b4 100644
--- a/apps/studio/data/analytics/infra-monitoring-query.ts
+++ b/apps/studio/data/analytics/infra-monitoring-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import dayjs from 'dayjs'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { AnalyticsData } from './constants'
+import type { AnalyticsData } from './constants'
import { analyticsKeys } from './keys'
export type InfraMonitoringVariables = {
diff --git a/apps/studio/data/analytics/org-daily-compute-stats-query.ts b/apps/studio/data/analytics/org-daily-compute-stats-query.ts
index a4bf2e24e1f..60232b64243 100644
--- a/apps/studio/data/analytics/org-daily-compute-stats-query.ts
+++ b/apps/studio/data/analytics/org-daily-compute-stats-query.ts
@@ -1,9 +1,9 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import dayjs from 'dayjs'
import { get } from 'data/fetchers'
-import { AnalyticsData } from './constants'
+import type { AnalyticsData } from './constants'
import { analyticsKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrgDailyComputeStatsVariables = {
// API parameters
diff --git a/apps/studio/data/analytics/org-daily-stats-query.ts b/apps/studio/data/analytics/org-daily-stats-query.ts
index 9e92da29293..90202c60cf7 100644
--- a/apps/studio/data/analytics/org-daily-stats-query.ts
+++ b/apps/studio/data/analytics/org-daily-stats-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import dayjs from 'dayjs'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { AnalyticsData } from './constants'
+import type { AnalyticsData } from './constants'
import { analyticsKeys } from './keys'
export enum EgressType {
diff --git a/apps/studio/data/analytics/project-log-requests-count-query.ts b/apps/studio/data/analytics/project-log-requests-count-query.ts
index dd092593fc1..e5436f71363 100644
--- a/apps/studio/data/analytics/project-log-requests-count-query.ts
+++ b/apps/studio/data/analytics/project-log-requests-count-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { analyticsKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectLogRequestsCountVariables = {
projectRef?: string
diff --git a/apps/studio/data/api-authorization/api-authorization-approve-mutation.ts b/apps/studio/data/api-authorization/api-authorization-approve-mutation.ts
index 1185cc12dfd..8ee802a666f 100644
--- a/apps/studio/data/api-authorization/api-authorization-approve-mutation.ts
+++ b/apps/studio/data/api-authorization/api-authorization-approve-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ApiAuthorizationApproveVariables = {
id: string
diff --git a/apps/studio/data/api-authorization/api-authorization-decline-mutation.ts b/apps/studio/data/api-authorization/api-authorization-decline-mutation.ts
index aaff42dca99..5a55574d679 100644
--- a/apps/studio/data/api-authorization/api-authorization-decline-mutation.ts
+++ b/apps/studio/data/api-authorization/api-authorization-decline-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ApiAuthorizationDeclineVariables = {
id: string
diff --git a/apps/studio/data/api-authorization/api-authorization-query.ts b/apps/studio/data/api-authorization/api-authorization-query.ts
index bfd3efc235a..425cb98deb7 100644
--- a/apps/studio/data/api-authorization/api-authorization-query.ts
+++ b/apps/studio/data/api-authorization/api-authorization-query.ts
@@ -1,4 +1,4 @@
-import { OAuthScope } from '@supabase/shared-types/out/constants'
+import type { OAuthScope } from '@supabase/shared-types/out/constants'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
diff --git a/apps/studio/data/auth/auth-config-query.ts b/apps/studio/data/auth/auth-config-query.ts
index 293b47b039a..d8a6e34c4a6 100644
--- a/apps/studio/data/auth/auth-config-query.ts
+++ b/apps/studio/data/auth/auth-config-query.ts
@@ -1,8 +1,8 @@
import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get, handleError } from 'data/fetchers'
import { useCallback } from 'react'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { authKeys } from './keys'
export type AuthConfigVariables = {
diff --git a/apps/studio/data/auth/auth-config-update-mutation.ts b/apps/studio/data/auth/auth-config-update-mutation.ts
index c64a0d903a2..7e0c9f21000 100644
--- a/apps/studio/data/auth/auth-config-update-mutation.ts
+++ b/apps/studio/data/auth/auth-config-update-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { authKeys } from './keys'
export type AuthConfigUpdateVariables = {
diff --git a/apps/studio/data/auth/user-create-mutation.ts b/apps/studio/data/auth/user-create-mutation.ts
index 233ac115447..b737368acee 100644
--- a/apps/studio/data/auth/user-create-mutation.ts
+++ b/apps/studio/data/auth/user-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { authKeys } from './keys'
export type UserCreateVariables = {
diff --git a/apps/studio/data/auth/user-delete-mfa-factors-mutation.ts b/apps/studio/data/auth/user-delete-mfa-factors-mutation.ts
index 96a05ee37d2..1b58cfcc842 100644
--- a/apps/studio/data/auth/user-delete-mfa-factors-mutation.ts
+++ b/apps/studio/data/auth/user-delete-mfa-factors-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type UserDeleteMFAFactorsVariables = {
projectRef: string
diff --git a/apps/studio/data/auth/user-delete-mutation.ts b/apps/studio/data/auth/user-delete-mutation.ts
index c5007295417..a6a50713e69 100644
--- a/apps/studio/data/auth/user-delete-mutation.ts
+++ b/apps/studio/data/auth/user-delete-mutation.ts
@@ -3,8 +3,8 @@ import toast from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
-import { User } from './users-query'
+import type { ResponseError } from 'types'
+import type { User } from './users-query'
import { authKeys } from './keys'
export type UserDeleteVariables = {
diff --git a/apps/studio/data/auth/user-invite-mutation.ts b/apps/studio/data/auth/user-invite-mutation.ts
index ed92c179c15..ca0924e05a5 100644
--- a/apps/studio/data/auth/user-invite-mutation.ts
+++ b/apps/studio/data/auth/user-invite-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { API_URL } from 'lib/constants'
import { authKeys } from './keys'
diff --git a/apps/studio/data/auth/user-reset-password-mutation.ts b/apps/studio/data/auth/user-reset-password-mutation.ts
index 14220772625..ff76c1a1b15 100644
--- a/apps/studio/data/auth/user-reset-password-mutation.ts
+++ b/apps/studio/data/auth/user-reset-password-mutation.ts
@@ -3,8 +3,8 @@ import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
-import { User } from './users-query'
+import type { ResponseError } from 'types'
+import type { User } from './users-query'
export type UserResetPasswordVariables = {
projectRef: string
diff --git a/apps/studio/data/auth/user-send-magic-link-mutation.ts b/apps/studio/data/auth/user-send-magic-link-mutation.ts
index ad339580490..6caed79dea3 100644
--- a/apps/studio/data/auth/user-send-magic-link-mutation.ts
+++ b/apps/studio/data/auth/user-send-magic-link-mutation.ts
@@ -3,8 +3,8 @@ import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
-import { User } from './users-query'
+import type { ResponseError } from 'types'
+import type { User } from './users-query'
export type UserSendMagicLinkVariables = {
projectRef: string
diff --git a/apps/studio/data/auth/user-send-otp-mutation.ts b/apps/studio/data/auth/user-send-otp-mutation.ts
index 35df55e88c2..7630b637656 100644
--- a/apps/studio/data/auth/user-send-otp-mutation.ts
+++ b/apps/studio/data/auth/user-send-otp-mutation.ts
@@ -3,8 +3,8 @@ import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
-import { User } from './users-query'
+import type { ResponseError } from 'types'
+import type { User } from './users-query'
export type UserSendOTPVariables = {
projectRef: string
diff --git a/apps/studio/data/auth/users-query.ts b/apps/studio/data/auth/users-query.ts
index a4fcc4123c4..8a9486f302a 100644
--- a/apps/studio/data/auth/users-query.ts
+++ b/apps/studio/data/auth/users-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { authKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type UsersVariables = {
projectRef?: string
diff --git a/apps/studio/data/banned-ips/banned-ips-delete-mutations.ts b/apps/studio/data/banned-ips/banned-ips-delete-mutations.ts
index fda7e1b04ae..179ef255ef8 100644
--- a/apps/studio/data/banned-ips/banned-ips-delete-mutations.ts
+++ b/apps/studio/data/banned-ips/banned-ips-delete-mutations.ts
@@ -1,6 +1,6 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { BannedIPKeys } from './keys'
import toast from 'react-hot-toast'
diff --git a/apps/studio/data/banned-ips/banned-ips-query.ts b/apps/studio/data/banned-ips/banned-ips-query.ts
index 66e914ee14c..0ac314d39e1 100644
--- a/apps/studio/data/banned-ips/banned-ips-query.ts
+++ b/apps/studio/data/banned-ips/banned-ips-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { handleError, post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { BannedIPKeys } from './keys'
export type BannedIPVariables = {
diff --git a/apps/studio/data/branches/branch-create-mutation.ts b/apps/studio/data/branches/branch-create-mutation.ts
index 45ae4585913..c056ae84f0d 100644
--- a/apps/studio/data/branches/branch-create-mutation.ts
+++ b/apps/studio/data/branches/branch-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { branchKeys } from './keys'
import { projectKeys } from 'data/projects/keys'
diff --git a/apps/studio/data/branches/branch-delete-mutation.ts b/apps/studio/data/branches/branch-delete-mutation.ts
index 736a66b9162..2ebe359a25f 100644
--- a/apps/studio/data/branches/branch-delete-mutation.ts
+++ b/apps/studio/data/branches/branch-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { branchKeys } from './keys'
export type BranchDeleteVariables = {
diff --git a/apps/studio/data/branches/branch-query.ts b/apps/studio/data/branches/branch-query.ts
index 5b40d9f8178..4959e155748 100644
--- a/apps/studio/data/branches/branch-query.ts
+++ b/apps/studio/data/branches/branch-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { branchKeys } from './keys'
export type BranchVariables = {
diff --git a/apps/studio/data/branches/branch-update-mutation.ts b/apps/studio/data/branches/branch-update-mutation.ts
index 2b70d82bb48..5ccec5ecbd8 100644
--- a/apps/studio/data/branches/branch-update-mutation.ts
+++ b/apps/studio/data/branches/branch-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { branchKeys } from './keys'
export type BranchUpdateVariables = {
diff --git a/apps/studio/data/branches/branches-disable-mutation.ts b/apps/studio/data/branches/branches-disable-mutation.ts
index 32f3cdbaedc..c5185da3899 100644
--- a/apps/studio/data/branches/branches-disable-mutation.ts
+++ b/apps/studio/data/branches/branches-disable-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
import { projectKeys } from 'data/projects/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { deleteBranch } from './branch-delete-mutation'
import { branchKeys } from './keys'
diff --git a/apps/studio/data/branches/branches-query.ts b/apps/studio/data/branches/branches-query.ts
index 91a95c3d753..67c27347e40 100644
--- a/apps/studio/data/branches/branches-query.ts
+++ b/apps/studio/data/branches/branches-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { branchKeys } from './keys'
export type BranchesVariables = {
diff --git a/apps/studio/data/config/jwt-secret-update-mutation.ts b/apps/studio/data/config/jwt-secret-update-mutation.ts
index 6d50154a832..95087a12902 100644
--- a/apps/studio/data/config/jwt-secret-update-mutation.ts
+++ b/apps/studio/data/config/jwt-secret-update-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { configKeys } from './keys'
export type JwtSecretUpdateVariables = {
diff --git a/apps/studio/data/config/pgbouncer-enabled-query.ts b/apps/studio/data/config/pgbouncer-enabled-query.ts
index 6a7b84ac92a..fa176d2e9a6 100644
--- a/apps/studio/data/config/pgbouncer-enabled-query.ts
+++ b/apps/studio/data/config/pgbouncer-enabled-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { configKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { get } from 'data/fetchers'
import { IS_PLATFORM } from 'lib/constants'
diff --git a/apps/studio/data/config/project-api-query.ts b/apps/studio/data/config/project-api-query.ts
index 64ae4284cfa..ae1e960a9d8 100644
--- a/apps/studio/data/config/project-api-query.ts
+++ b/apps/studio/data/config/project-api-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { configKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectApiVariables = {
projectRef?: string
diff --git a/apps/studio/data/config/project-disk-resize-mutation.ts b/apps/studio/data/config/project-disk-resize-mutation.ts
index c07ca3245f1..dcc9977bb5f 100644
--- a/apps/studio/data/config/project-disk-resize-mutation.ts
+++ b/apps/studio/data/config/project-disk-resize-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { usageKeys } from '../usage/keys'
export type ProjectDiskResizeVariables = {
diff --git a/apps/studio/data/config/project-postgrest-config-update-mutation.ts b/apps/studio/data/config/project-postgrest-config-update-mutation.ts
index 8b87c192ae2..0e319361257 100644
--- a/apps/studio/data/config/project-postgrest-config-update-mutation.ts
+++ b/apps/studio/data/config/project-postgrest-config-update-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { configKeys } from './keys'
export type ProjectPostgrestConfigUpdateVariables = {
diff --git a/apps/studio/data/config/project-settings-query.ts b/apps/studio/data/config/project-settings-query.ts
index 91de0d3df78..7123a015e65 100644
--- a/apps/studio/data/config/project-settings-query.ts
+++ b/apps/studio/data/config/project-settings-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get } from 'data/fetchers'
import { DEFAULT_PROJECT_API_SERVICE_ID } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { configKeys } from './keys'
export type ProjectSettingsVariables = {
diff --git a/apps/studio/data/config/project-storage-config-query.ts b/apps/studio/data/config/project-storage-config-query.ts
index 6fdefd55786..8408f0e74d9 100644
--- a/apps/studio/data/config/project-storage-config-query.ts
+++ b/apps/studio/data/config/project-storage-config-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { configKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectStorageConfigVariables = {
projectRef?: string
diff --git a/apps/studio/data/config/project-storage-config-update-mutation.ts b/apps/studio/data/config/project-storage-config-update-mutation.ts
index d1faba61008..b3ff8aa6eaa 100644
--- a/apps/studio/data/config/project-storage-config-update-mutation.ts
+++ b/apps/studio/data/config/project-storage-config-update-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { configKeys } from './keys'
export type ProjectStorageConfigUpdateUpdateVariables = {
diff --git a/apps/studio/data/config/project-temp-disable-read-only-mutation.ts b/apps/studio/data/config/project-temp-disable-read-only-mutation.ts
index 769fce31388..b7c47d4173c 100644
--- a/apps/studio/data/config/project-temp-disable-read-only-mutation.ts
+++ b/apps/studio/data/config/project-temp-disable-read-only-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
import { usageKeys } from 'data/usage/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type TempDisableReadOnlyModeVariables = {
projectRef: string
diff --git a/apps/studio/data/config/project-upgrade-eligibility-query.ts b/apps/studio/data/config/project-upgrade-eligibility-query.ts
index 1968c3efa75..685618c8c6d 100644
--- a/apps/studio/data/config/project-upgrade-eligibility-query.ts
+++ b/apps/studio/data/config/project-upgrade-eligibility-query.ts
@@ -3,7 +3,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
import { configKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectUpgradeEligibilityVariables = { projectRef?: string }
export type ProjectUpgradeEligibilityResponse = {
diff --git a/apps/studio/data/content/content-delete-mutation.ts b/apps/studio/data/content/content-delete-mutation.ts
index 91dc03c343f..fdae3e32f0f 100644
--- a/apps/studio/data/content/content-delete-mutation.ts
+++ b/apps/studio/data/content/content-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { contentKeys } from './keys'
type DeleteContentVariables = { projectRef: string; ids: string[] }
diff --git a/apps/studio/data/content/content-insert-mutation.ts b/apps/studio/data/content/content-insert-mutation.ts
index e7499042335..c7bdfab3b3c 100644
--- a/apps/studio/data/content/content-insert-mutation.ts
+++ b/apps/studio/data/content/content-insert-mutation.ts
@@ -1,10 +1,10 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
-import { Content } from './content-query'
+import type { ResponseError } from 'types'
+import type { Content } from './content-query'
import { contentKeys } from './keys'
export type InsertContentPayload = Omit<components['schemas']['CreateContentParams'], 'content'> & {
diff --git a/apps/studio/data/content/content-query.ts b/apps/studio/data/content/content-query.ts
index 364e7499b43..578b7bf674e 100644
--- a/apps/studio/data/content/content-query.ts
+++ b/apps/studio/data/content/content-query.ts
@@ -2,7 +2,7 @@ import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { useCallback } from 'react'
-import { Dashboards, LogSqlSnippets, Owner, SqlSnippets } from 'types'
+import type { Dashboards, LogSqlSnippets, Owner, SqlSnippets } from 'types'
import { contentKeys } from './keys'
type ContentBase = {
diff --git a/apps/studio/data/content/content-upsert-mutation.ts b/apps/studio/data/content/content-upsert-mutation.ts
index faaf59eca9b..a3fe29ef1cd 100644
--- a/apps/studio/data/content/content-upsert-mutation.ts
+++ b/apps/studio/data/content/content-upsert-mutation.ts
@@ -1,10 +1,10 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { put } from 'data/fetchers'
-import { ResponseError } from 'types'
-import { Content } from './content-query'
+import type { ResponseError } from 'types'
+import type { Content } from './content-query'
import { contentKeys } from './keys'
export type UpsertContentPayload = Omit<components['schemas']['UpsertContentParams'], 'content'> & {
diff --git a/apps/studio/data/custom-domains/check-cname-mutation.ts b/apps/studio/data/custom-domains/check-cname-mutation.ts
index 62bfcaf7de7..5249707314c 100644
--- a/apps/studio/data/custom-domains/check-cname-mutation.ts
+++ b/apps/studio/data/custom-domains/check-cname-mutation.ts
@@ -1,7 +1,7 @@
import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type CheckCNAMERecordVariables = {
domain: string
diff --git a/apps/studio/data/custom-domains/custom-domains-activate-mutation.ts b/apps/studio/data/custom-domains/custom-domains-activate-mutation.ts
index c0c44d6e52c..091b8e196a3 100644
--- a/apps/studio/data/custom-domains/custom-domains-activate-mutation.ts
+++ b/apps/studio/data/custom-domains/custom-domains-activate-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { customDomainKeys } from './keys'
export type CustomDomainActivateVariables = {
diff --git a/apps/studio/data/custom-domains/custom-domains-create-mutation.ts b/apps/studio/data/custom-domains/custom-domains-create-mutation.ts
index 816a978b955..b50b0a1bd00 100644
--- a/apps/studio/data/custom-domains/custom-domains-create-mutation.ts
+++ b/apps/studio/data/custom-domains/custom-domains-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { customDomainKeys } from './keys'
export type CustomDomainCreateVariables = {
diff --git a/apps/studio/data/custom-domains/custom-domains-delete-mutation.ts b/apps/studio/data/custom-domains/custom-domains-delete-mutation.ts
index 615b0a583f9..2285c138304 100644
--- a/apps/studio/data/custom-domains/custom-domains-delete-mutation.ts
+++ b/apps/studio/data/custom-domains/custom-domains-delete-mutation.ts
@@ -1,7 +1,7 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { del } from 'data/fetchers'
import { toast } from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { customDomainKeys } from './keys'
export type CustomDomainDeleteVariables = {
diff --git a/apps/studio/data/custom-domains/custom-domains-query.ts b/apps/studio/data/custom-domains/custom-domains-query.ts
index 4a4ea190cbc..1ffd8cd0f8e 100644
--- a/apps/studio/data/custom-domains/custom-domains-query.ts
+++ b/apps/studio/data/custom-domains/custom-domains-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get, handleError } from 'data/fetchers'
import { IS_PLATFORM } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { customDomainKeys } from './keys'
export type CustomDomainsVariables = {
diff --git a/apps/studio/data/custom-domains/custom-domains-reverify-mutation.ts b/apps/studio/data/custom-domains/custom-domains-reverify-mutation.ts
index a33fe58a6ed..8d7988a2ba1 100644
--- a/apps/studio/data/custom-domains/custom-domains-reverify-mutation.ts
+++ b/apps/studio/data/custom-domains/custom-domains-reverify-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { post } from 'data/fetchers'
import { toast } from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { customDomainKeys } from './keys'
export type CustomDomainReverifyVariables = {
diff --git a/apps/studio/data/database-columns/database-column-create-mutation.ts b/apps/studio/data/database-columns/database-column-create-mutation.ts
index 1df9fd8364a..28793eaa760 100644
--- a/apps/studio/data/database-columns/database-column-create-mutation.ts
+++ b/apps/studio/data/database-columns/database-column-create-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type CreateColumnBody = components['schemas']['CreateColumnBody']
diff --git a/apps/studio/data/database-columns/database-column-delete-mutation.ts b/apps/studio/data/database-columns/database-column-delete-mutation.ts
index e4c9960104a..b067ea240c9 100644
--- a/apps/studio/data/database-columns/database-column-delete-mutation.ts
+++ b/apps/studio/data/database-columns/database-column-delete-mutation.ts
@@ -2,10 +2,10 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { sqlKeys } from 'data/sql/keys'
import { entityTypeKeys } from 'data/entity-types/keys'
-import { TableLike } from 'hooks/misc/useTable'
+import type { TableLike } from 'hooks/misc/useTable'
import { tableKeys } from 'data/tables/keys'
import { viewKeys } from 'data/views/keys'
diff --git a/apps/studio/data/database-columns/database-column-update-mutation.ts b/apps/studio/data/database-columns/database-column-update-mutation.ts
index 01b80d363eb..17ba65de6a5 100644
--- a/apps/studio/data/database-columns/database-column-update-mutation.ts
+++ b/apps/studio/data/database-columns/database-column-update-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type UpdateColumnBody = components['schemas']['UpdateColumnBody']
diff --git a/apps/studio/data/database-extensions/database-extension-disable-mutation.ts b/apps/studio/data/database-extensions/database-extension-disable-mutation.ts
index 93e0740c124..a1e3d029136 100644
--- a/apps/studio/data/database-extensions/database-extension-disable-mutation.ts
+++ b/apps/studio/data/database-extensions/database-extension-disable-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseExtensionsKeys } from './keys'
export type DatabaseExtensionDisableVariables = {
diff --git a/apps/studio/data/database-extensions/database-extension-enable-mutation.ts b/apps/studio/data/database-extensions/database-extension-enable-mutation.ts
index 855426a78bc..4f88ed07992 100644
--- a/apps/studio/data/database-extensions/database-extension-enable-mutation.ts
+++ b/apps/studio/data/database-extensions/database-extension-enable-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseExtensionsKeys } from './keys'
import { executeSql } from 'data/sql/execute-sql-query'
diff --git a/apps/studio/data/database-extensions/database-extensions-query.ts b/apps/studio/data/database-extensions/database-extensions-query.ts
index 47b2086eb42..2d57aecf21d 100644
--- a/apps/studio/data/database-extensions/database-extensions-query.ts
+++ b/apps/studio/data/database-extensions/database-extensions-query.ts
@@ -1,6 +1,6 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseExtensionsKeys } from './keys'
export type DatabaseExtensionsVariables = {
diff --git a/apps/studio/data/database-functions/database-functions-create-mutation.ts b/apps/studio/data/database-functions/database-functions-create-mutation.ts
index 0e75b1b1101..b43c65ea3ef 100644
--- a/apps/studio/data/database-functions/database-functions-create-mutation.ts
+++ b/apps/studio/data/database-functions/database-functions-create-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseFunctionsKeys } from './keys'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
export type DatabaseFunctionCreateVariables = {
projectRef: string
diff --git a/apps/studio/data/database-functions/database-functions-delete-mutation.ts b/apps/studio/data/database-functions/database-functions-delete-mutation.ts
index ff125580ba8..1b6a6c3191e 100644
--- a/apps/studio/data/database-functions/database-functions-delete-mutation.ts
+++ b/apps/studio/data/database-functions/database-functions-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseFunctionsKeys } from './keys'
export type DatabaseFunctionDeleteVariables = {
diff --git a/apps/studio/data/database-functions/database-functions-query.ts b/apps/studio/data/database-functions/database-functions-query.ts
index 4f2af0855ed..4e42d9a43c1 100644
--- a/apps/studio/data/database-functions/database-functions-query.ts
+++ b/apps/studio/data/database-functions/database-functions-query.ts
@@ -1,8 +1,8 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseFunctionsKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type DatabaseFunctionsVariables = {
projectRef?: string
diff --git a/apps/studio/data/database-functions/database-functions-update-mutation.ts b/apps/studio/data/database-functions/database-functions-update-mutation.ts
index ccda983833e..0010303742c 100644
--- a/apps/studio/data/database-functions/database-functions-update-mutation.ts
+++ b/apps/studio/data/database-functions/database-functions-update-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseFunctionsKeys } from './keys'
export type DatabaseFunctionUpdateVariables = {
diff --git a/apps/studio/data/database-policies/database-policies-query.ts b/apps/studio/data/database-policies/database-policies-query.ts
index 7245e5af1d1..4dcc3618de8 100644
--- a/apps/studio/data/database-policies/database-policies-query.ts
+++ b/apps/studio/data/database-policies/database-policies-query.ts
@@ -1,7 +1,7 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePoliciesKeys } from './keys'
export type DatabasePoliciesVariables = {
diff --git a/apps/studio/data/database-policies/database-policy-create-mutation.ts b/apps/studio/data/database-policies/database-policy-create-mutation.ts
index c0eb3a3978f..eb23a4e6117 100644
--- a/apps/studio/data/database-policies/database-policy-create-mutation.ts
+++ b/apps/studio/data/database-policies/database-policy-create-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePoliciesKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
type CreatePolicyBody = components['schemas']['CreatePolicyBody']
diff --git a/apps/studio/data/database-policies/database-policy-delete-mutation.ts b/apps/studio/data/database-policies/database-policy-delete-mutation.ts
index e7de0668589..d312458f630 100644
--- a/apps/studio/data/database-policies/database-policy-delete-mutation.ts
+++ b/apps/studio/data/database-policies/database-policy-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePoliciesKeys } from './keys'
export type DatabasePolicyDeleteVariables = {
diff --git a/apps/studio/data/database-policies/database-policy-update-mutation.ts b/apps/studio/data/database-policies/database-policy-update-mutation.ts
index 9640784b8a9..6accc7fdc9d 100644
--- a/apps/studio/data/database-policies/database-policy-update-mutation.ts
+++ b/apps/studio/data/database-policies/database-policy-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePoliciesKeys } from './keys'
export type DatabasePolicyUpdateVariables = {
diff --git a/apps/studio/data/database-publications/database-publications-create-mutation.ts b/apps/studio/data/database-publications/database-publications-create-mutation.ts
index 79545fbf589..2945ce701e0 100644
--- a/apps/studio/data/database-publications/database-publications-create-mutation.ts
+++ b/apps/studio/data/database-publications/database-publications-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePublicationsKeys } from './keys'
export type DatabasePublicationCreateVariables = {
diff --git a/apps/studio/data/database-publications/database-publications-query.ts b/apps/studio/data/database-publications/database-publications-query.ts
index 4c4055703f1..72e376d8604 100644
--- a/apps/studio/data/database-publications/database-publications-query.ts
+++ b/apps/studio/data/database-publications/database-publications-query.ts
@@ -1,6 +1,6 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePublicationsKeys } from './keys'
export type DatabasePublicationsVariables = {
diff --git a/apps/studio/data/database-publications/database-publications-update-mutation.ts b/apps/studio/data/database-publications/database-publications-update-mutation.ts
index 990f15adf85..42f98b61e30 100644
--- a/apps/studio/data/database-publications/database-publications-update-mutation.ts
+++ b/apps/studio/data/database-publications/database-publications-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databasePublicationsKeys } from './keys'
export type DatabasePublicationUpdateVariables = {
diff --git a/apps/studio/data/database-roles/database-role-create-mutation.ts b/apps/studio/data/database-roles/database-role-create-mutation.ts
index 1d359a7407d..ecaaa44fa47 100644
--- a/apps/studio/data/database-roles/database-role-create-mutation.ts
+++ b/apps/studio/data/database-roles/database-role-create-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseRolesKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
type CreateRoleBody = components['schemas']['CreateRoleBody']
diff --git a/apps/studio/data/database-roles/database-role-delete-mutation.ts b/apps/studio/data/database-roles/database-role-delete-mutation.ts
index c735da3e9bd..ac0569614ab 100644
--- a/apps/studio/data/database-roles/database-role-delete-mutation.ts
+++ b/apps/studio/data/database-roles/database-role-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseRolesKeys } from './keys'
export type DatabaseRoleDeleteVariables = {
diff --git a/apps/studio/data/database-roles/database-role-update-mutation.ts b/apps/studio/data/database-roles/database-role-update-mutation.ts
index f55623e43a8..c8876fb55e7 100644
--- a/apps/studio/data/database-roles/database-role-update-mutation.ts
+++ b/apps/studio/data/database-roles/database-role-update-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseRolesKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
type UpdateRoleBody = components['schemas']['UpdateRoleBody']
diff --git a/apps/studio/data/database-roles/database-roles-query.ts b/apps/studio/data/database-roles/database-roles-query.ts
index 4c276154d39..fc107b656a2 100644
--- a/apps/studio/data/database-roles/database-roles-query.ts
+++ b/apps/studio/data/database-roles/database-roles-query.ts
@@ -1,8 +1,8 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
-import { PostgresRole } from '@supabase/postgres-meta'
+import type { PostgresRole } from '@supabase/postgres-meta'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseRolesKeys } from './keys'
export type DatabaseRolesVariables = {
diff --git a/apps/studio/data/database-triggers/database-trigger-create-mutation.ts b/apps/studio/data/database-triggers/database-trigger-create-mutation.ts
index d20ade72ef7..4b9a819fa26 100644
--- a/apps/studio/data/database-triggers/database-trigger-create-mutation.ts
+++ b/apps/studio/data/database-triggers/database-trigger-create-mutation.ts
@@ -1,10 +1,10 @@
-import { PostgresTrigger } from '@supabase/postgres-meta'
+import type { PostgresTrigger } from '@supabase/postgres-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseTriggerKeys } from './keys'
export type DatabaseTriggerCreateVariables = {
diff --git a/apps/studio/data/database-triggers/database-trigger-delete-mutation.ts b/apps/studio/data/database-triggers/database-trigger-delete-mutation.ts
index e8d1fce75b5..275b4ed2a66 100644
--- a/apps/studio/data/database-triggers/database-trigger-delete-mutation.ts
+++ b/apps/studio/data/database-triggers/database-trigger-delete-mutation.ts
@@ -1,11 +1,11 @@
import { toast } from 'react-hot-toast'
-import { PostgresTrigger } from '@supabase/postgres-meta'
+import type { PostgresTrigger } from '@supabase/postgres-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { databaseTriggerKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type DatabaseTriggerDeleteVariables = {
id: number
diff --git a/apps/studio/data/database-triggers/database-trigger-update-mutation.ts b/apps/studio/data/database-triggers/database-trigger-update-mutation.ts
index 7e29c2bf500..77ae421992d 100644
--- a/apps/studio/data/database-triggers/database-trigger-update-mutation.ts
+++ b/apps/studio/data/database-triggers/database-trigger-update-mutation.ts
@@ -1,10 +1,10 @@
-import { PostgresTrigger } from '@supabase/postgres-meta'
+import type { PostgresTrigger } from '@supabase/postgres-meta'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseTriggerKeys } from './keys'
export type DatabaseTriggerUpdateVariables = {
diff --git a/apps/studio/data/database-triggers/database-trigger-update-transaction-mutation.ts b/apps/studio/data/database-triggers/database-trigger-update-transaction-mutation.ts
index 3f4c1536244..57a5991a455 100644
--- a/apps/studio/data/database-triggers/database-trigger-update-transaction-mutation.ts
+++ b/apps/studio/data/database-triggers/database-trigger-update-transaction-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { executeSql } from 'data/sql/execute-sql-query'
import { quoteLiteral } from 'lib/pg-format'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseTriggerKeys } from './keys'
// [Joshen] Writing this query within FE as the PATCH endpoint from pg-meta only supports updating
diff --git a/apps/studio/data/database-triggers/database-triggers-query.ts b/apps/studio/data/database-triggers/database-triggers-query.ts
index 8c3202045f2..46fc96cfc2b 100644
--- a/apps/studio/data/database-triggers/database-triggers-query.ts
+++ b/apps/studio/data/database-triggers/database-triggers-query.ts
@@ -1,9 +1,9 @@
-import { PostgresTrigger } from '@supabase/postgres-meta'
+import type { PostgresTrigger } from '@supabase/postgres-meta'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { databaseTriggerKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type DatabaseTriggersVariables = {
projectRef?: string
diff --git a/apps/studio/data/database/backup-download-mutation.ts b/apps/studio/data/database/backup-download-mutation.ts
index 7079cbd6d2b..8c9d4a832b1 100644
--- a/apps/studio/data/database/backup-download-mutation.ts
+++ b/apps/studio/data/database/backup-download-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { Backup } from './backup-restore-mutation'
export type BackupDownloadVariables = {
diff --git a/apps/studio/data/database/backup-restore-mutation.ts b/apps/studio/data/database/backup-restore-mutation.ts
index e8f27f9e628..8fb0ff7fb7f 100644
--- a/apps/studio/data/database/backup-restore-mutation.ts
+++ b/apps/studio/data/database/backup-restore-mutation.ts
@@ -2,8 +2,8 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
-import { components } from 'data/api'
+import type { ResponseError } from 'types'
+import type { components } from 'data/api'
export type BackupRestoreVariables = {
ref: string
diff --git a/apps/studio/data/database/backups-query.ts b/apps/studio/data/database/backups-query.ts
index 95908321674..d2c38ae3555 100644
--- a/apps/studio/data/database/backups-query.ts
+++ b/apps/studio/data/database/backups-query.ts
@@ -1,9 +1,9 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type BackupsVariables = {
projectRef?: string
diff --git a/apps/studio/data/database/database-password-reset-mutation.ts b/apps/studio/data/database/database-password-reset-mutation.ts
index fef0e3c6fb3..832fe483098 100644
--- a/apps/studio/data/database/database-password-reset-mutation.ts
+++ b/apps/studio/data/database/database-password-reset-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
import { projectKeys } from 'data/projects/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type DatabasePasswordResetVariables = {
ref: string
diff --git a/apps/studio/data/database/hooks-enable-mutation.ts b/apps/studio/data/database/hooks-enable-mutation.ts
index 6ca08f5090b..504e891968e 100644
--- a/apps/studio/data/database/hooks-enable-mutation.ts
+++ b/apps/studio/data/database/hooks-enable-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseKeys } from './keys'
export type HooksEnableVariables = {
diff --git a/apps/studio/data/database/indexes-query.ts b/apps/studio/data/database/indexes-query.ts
index 8ccd8971234..e45702479cc 100644
--- a/apps/studio/data/database/indexes-query.ts
+++ b/apps/studio/data/database/indexes-query.ts
@@ -1,6 +1,6 @@
import { UseQueryOptions } from '@tanstack/react-query'
import { ExecuteSqlData, useExecuteSqlQuery } from '../sql/execute-sql-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
// [Joshen] Future refactor to move to pg-meta once available
diff --git a/apps/studio/data/database/pitr-restore-mutation.ts b/apps/studio/data/database/pitr-restore-mutation.ts
index b94c070e0ad..8089acb85d9 100644
--- a/apps/studio/data/database/pitr-restore-mutation.ts
+++ b/apps/studio/data/database/pitr-restore-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type PitrRestoreVariables = {
ref: string
diff --git a/apps/studio/data/database/pooling-configuration-query.ts b/apps/studio/data/database/pooling-configuration-query.ts
index 7e03ccb3cd5..006bcde9676 100644
--- a/apps/studio/data/database/pooling-configuration-query.ts
+++ b/apps/studio/data/database/pooling-configuration-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseKeys } from './keys'
export type PoolingConfigurationVariables = {
diff --git a/apps/studio/data/database/pooling-configuration-update-mutation.ts b/apps/studio/data/database/pooling-configuration-update-mutation.ts
index aa0bb1aceb9..96bcc57afff 100644
--- a/apps/studio/data/database/pooling-configuration-update-mutation.ts
+++ b/apps/studio/data/database/pooling-configuration-update-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseKeys } from './keys'
export type PoolingConfigurationUpdateVariables = {
diff --git a/apps/studio/data/database/schema-create-mutation.ts b/apps/studio/data/database/schema-create-mutation.ts
index a5519a6e9aa..4bdc1aca4f8 100644
--- a/apps/studio/data/database/schema-create-mutation.ts
+++ b/apps/studio/data/database/schema-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseKeys } from './keys'
export type SchemaCreateVariables = {
diff --git a/apps/studio/data/database/schemas-query.ts b/apps/studio/data/database/schemas-query.ts
index 926d19a13a1..4fdbf7a1d51 100644
--- a/apps/studio/data/database/schemas-query.ts
+++ b/apps/studio/data/database/schemas-query.ts
@@ -1,8 +1,8 @@
import { QueryClient, useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { databaseKeys } from './keys'
export type SchemasVariables = {
diff --git a/apps/studio/data/documents/document-query.ts b/apps/studio/data/documents/document-query.ts
index 708db983b41..a9a674e61fc 100644
--- a/apps/studio/data/documents/document-query.ts
+++ b/apps/studio/data/documents/document-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { documentKeys } from './keys'
export type DocType = 'standard-security-questionnaire' | 'soc2-type-2-report'
diff --git a/apps/studio/data/edge-functions/edge-functions-delete-mutation.ts b/apps/studio/data/edge-functions/edge-functions-delete-mutation.ts
index c1ec1a32526..eb5c2cb5d49 100644
--- a/apps/studio/data/edge-functions/edge-functions-delete-mutation.ts
+++ b/apps/studio/data/edge-functions/edge-functions-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { edgeFunctionsKeys } from './keys'
export type EdgeFunctionsDeleteVariables = {
diff --git a/apps/studio/data/edge-functions/edge-functions-query.ts b/apps/studio/data/edge-functions/edge-functions-query.ts
index 2c34d320c9d..6792b10fe92 100644
--- a/apps/studio/data/edge-functions/edge-functions-query.ts
+++ b/apps/studio/data/edge-functions/edge-functions-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_ADMIN_URL, IS_PLATFORM } from 'lib/constants'
import { edgeFunctionsKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type EdgeFunctionsVariables = { projectRef?: string }
diff --git a/apps/studio/data/edge-functions/edge-functions-update-mutation.ts b/apps/studio/data/edge-functions/edge-functions-update-mutation.ts
index a77f9d0e3d1..2bd6c09e0b6 100644
--- a/apps/studio/data/edge-functions/edge-functions-update-mutation.ts
+++ b/apps/studio/data/edge-functions/edge-functions-update-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { edgeFunctionsKeys } from './keys'
export type EdgeFunctionsUpdateVariables = {
diff --git a/apps/studio/data/entity-types/entity-types-infinite-query.ts b/apps/studio/data/entity-types/entity-types-infinite-query.ts
index 8e911e2af3d..f24f0bf96d1 100644
--- a/apps/studio/data/entity-types/entity-types-infinite-query.ts
+++ b/apps/studio/data/entity-types/entity-types-infinite-query.ts
@@ -1,6 +1,6 @@
import { useInfiniteQuery, UseInfiniteQueryOptions } from '@tanstack/react-query'
import { executeSql, ExecuteSqlVariables } from 'data/sql/execute-sql-query'
-import { Entity } from './entity-type-query'
+import type { Entity } from './entity-type-query'
import { entityTypeKeys } from './keys'
export type EntityTypesVariables = {
diff --git a/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts b/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts
index 29e53e4c136..37fa2323d92 100644
--- a/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts
+++ b/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts
@@ -1,7 +1,7 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { enumeratedTypesKeys } from './keys'
import { executeSql } from 'data/sql/execute-sql-query'
import { wrapWithTransaction } from 'data/sql/utils/transaction'
diff --git a/apps/studio/data/enumerated-types/enumerated-type-delete-mutation.ts b/apps/studio/data/enumerated-types/enumerated-type-delete-mutation.ts
index 7461f6c1e5d..a4cf539aec5 100644
--- a/apps/studio/data/enumerated-types/enumerated-type-delete-mutation.ts
+++ b/apps/studio/data/enumerated-types/enumerated-type-delete-mutation.ts
@@ -1,7 +1,7 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { enumeratedTypesKeys } from './keys'
import { executeSql } from 'data/sql/execute-sql-query'
diff --git a/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts b/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts
index 6048694212d..037314bcb6e 100644
--- a/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts
+++ b/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts
@@ -1,7 +1,7 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { enumeratedTypesKeys } from './keys'
import { executeSql } from 'data/sql/execute-sql-query'
import { wrapWithTransaction } from 'data/sql/utils/transaction'
diff --git a/apps/studio/data/enumerated-types/enumerated-types-query.ts b/apps/studio/data/enumerated-types/enumerated-types-query.ts
index 942ee05ff1a..f8b9a7cf7ac 100644
--- a/apps/studio/data/enumerated-types/enumerated-types-query.ts
+++ b/apps/studio/data/enumerated-types/enumerated-types-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { enumeratedTypesKeys } from './keys'
export type EnumeratedTypesVariables = {
diff --git a/apps/studio/data/fdw/fdw-create-mutation.ts b/apps/studio/data/fdw/fdw-create-mutation.ts
index 046e36754e5..36e936df1a6 100644
--- a/apps/studio/data/fdw/fdw-create-mutation.ts
+++ b/apps/studio/data/fdw/fdw-create-mutation.ts
@@ -10,7 +10,7 @@ import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
import { wrapWithTransaction } from 'data/sql/utils/transaction'
import { vaultSecretsKeys } from 'data/vault/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { entityTypeKeys } from 'data/entity-types/keys'
export type FDWCreateVariables = {
diff --git a/apps/studio/data/fdw/fdw-delete-mutation.ts b/apps/studio/data/fdw/fdw-delete-mutation.ts
index cd495398a22..9c121f9aa4e 100644
--- a/apps/studio/data/fdw/fdw-delete-mutation.ts
+++ b/apps/studio/data/fdw/fdw-delete-mutation.ts
@@ -1,13 +1,13 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { WrapperMeta } from 'components/interfaces/Database/Wrappers/Wrappers.types'
+import type { WrapperMeta } from 'components/interfaces/Database/Wrappers/Wrappers.types'
import { pgSodiumKeys } from 'data/pg-sodium-keys/keys'
import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
import { wrapWithTransaction } from 'data/sql/utils/transaction'
import { vaultSecretsKeys } from 'data/vault/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { FDW } from './fdws-query'
import { entityTypeKeys } from 'data/entity-types/keys'
diff --git a/apps/studio/data/fdw/fdw-update-mutation.ts b/apps/studio/data/fdw/fdw-update-mutation.ts
index fd808471af3..9268d6b7dc7 100644
--- a/apps/studio/data/fdw/fdw-update-mutation.ts
+++ b/apps/studio/data/fdw/fdw-update-mutation.ts
@@ -1,13 +1,13 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { WrapperMeta } from 'components/interfaces/Database/Wrappers/Wrappers.types'
+import type { WrapperMeta } from 'components/interfaces/Database/Wrappers/Wrappers.types'
import { pgSodiumKeys } from 'data/pg-sodium-keys/keys'
import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
import { wrapWithTransaction } from 'data/sql/utils/transaction'
import { vaultSecretsKeys } from 'data/vault/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { getCreateFDWSql } from './fdw-create-mutation'
import { getDeleteFDWSql } from './fdw-delete-mutation'
import { FDW } from './fdws-query'
diff --git a/apps/studio/data/feedback/exit-survey-send.ts b/apps/studio/data/feedback/exit-survey-send.ts
index d95a8422356..d710e69d9e0 100644
--- a/apps/studio/data/feedback/exit-survey-send.ts
+++ b/apps/studio/data/feedback/exit-survey-send.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SendDowngradeFeedbackVariables = {
projectRef?: string
diff --git a/apps/studio/data/feedback/feedback-send.ts b/apps/studio/data/feedback/feedback-send.ts
index 969919c3979..6bd5b084e49 100644
--- a/apps/studio/data/feedback/feedback-send.ts
+++ b/apps/studio/data/feedback/feedback-send.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import toast from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SendFeedbackVariables = {
message: string
diff --git a/apps/studio/data/feedback/support-ticket-send.ts b/apps/studio/data/feedback/support-ticket-send.ts
index 334a5faeba8..aa7ad8f6450 100644
--- a/apps/studio/data/feedback/support-ticket-send.ts
+++ b/apps/studio/data/feedback/support-ticket-send.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type sendSupportTicketVariables = {
subject: string
diff --git a/apps/studio/data/fetchers.ts b/apps/studio/data/fetchers.ts
index 0799e1a1dcb..88df2a923bb 100644
--- a/apps/studio/data/fetchers.ts
+++ b/apps/studio/data/fetchers.ts
@@ -2,8 +2,8 @@ import { API_URL, IS_PLATFORM } from 'lib/constants'
import { getAccessToken } from 'lib/gotrue'
import { uuidv4 } from 'lib/helpers'
import createClient from 'openapi-fetch'
-import { paths } from './api' // generated from openapi-typescript
-import { ResponseError } from 'types'
+import type { paths } from './api' // generated from openapi-typescript
+import type { ResponseError } from 'types'
const DEFAULT_HEADERS = {
'Content-Type': 'application/json',
diff --git a/apps/studio/data/foreign-tables/foreign-table-query.ts b/apps/studio/data/foreign-tables/foreign-table-query.ts
index 01ac0317ebf..d6e3af3748f 100644
--- a/apps/studio/data/foreign-tables/foreign-table-query.ts
+++ b/apps/studio/data/foreign-tables/foreign-table-query.ts
@@ -1,4 +1,4 @@
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
diff --git a/apps/studio/data/integrations/github-authorization-create-mutation.ts b/apps/studio/data/integrations/github-authorization-create-mutation.ts
index b7c9d56f2d0..53e73b0f524 100644
--- a/apps/studio/data/integrations/github-authorization-create-mutation.ts
+++ b/apps/studio/data/integrations/github-authorization-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type GitHubAuthorizationCreateVariables = {
code: string
diff --git a/apps/studio/data/integrations/github-authorization-query.ts b/apps/studio/data/integrations/github-authorization-query.ts
index d2be21a104e..03b1846330d 100644
--- a/apps/studio/data/integrations/github-authorization-query.ts
+++ b/apps/studio/data/integrations/github-authorization-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
// FIXME(kamil): Do not retry, a single check is fine.
diff --git a/apps/studio/data/integrations/github-branch-check-query.ts b/apps/studio/data/integrations/github-branch-check-query.ts
index 0c82002e71b..9ac754fe668 100644
--- a/apps/studio/data/integrations/github-branch-check-query.ts
+++ b/apps/studio/data/integrations/github-branch-check-query.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type GithubBranchVariables = {
connectionId: number
diff --git a/apps/studio/data/integrations/github-branches-query.ts b/apps/studio/data/integrations/github-branches-query.ts
index 94260616aa9..9b621eab61d 100644
--- a/apps/studio/data/integrations/github-branches-query.ts
+++ b/apps/studio/data/integrations/github-branches-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { integrationKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type GitHubBranchesVariables = {
connectionId?: number
diff --git a/apps/studio/data/integrations/github-connection-create-mutation.ts b/apps/studio/data/integrations/github-connection-create-mutation.ts
index 62a494ed2e1..569827c5f5e 100644
--- a/apps/studio/data/integrations/github-connection-create-mutation.ts
+++ b/apps/studio/data/integrations/github-connection-create-mutation.ts
@@ -2,8 +2,8 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
-import { GitHubConnectionCreateVariables } from './integrations.types'
+import type { ResponseError } from 'types'
+import type { GitHubConnectionCreateVariables } from './integrations.types'
import { integrationKeys } from './keys'
export async function createGitHubConnection({ connection }: GitHubConnectionCreateVariables) {
diff --git a/apps/studio/data/integrations/github-connection-delete-mutation.ts b/apps/studio/data/integrations/github-connection-delete-mutation.ts
index d6fc6067e10..85c59938212 100644
--- a/apps/studio/data/integrations/github-connection-delete-mutation.ts
+++ b/apps/studio/data/integrations/github-connection-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
type DeleteVariables = {
diff --git a/apps/studio/data/integrations/github-connection-update-mutation.ts b/apps/studio/data/integrations/github-connection-update-mutation.ts
index 3af0320f8ea..9424cdd73c4 100644
--- a/apps/studio/data/integrations/github-connection-update-mutation.ts
+++ b/apps/studio/data/integrations/github-connection-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
type UpdateVariables = {
diff --git a/apps/studio/data/integrations/github-connections-query.ts b/apps/studio/data/integrations/github-connections-query.ts
index ef491049153..638445d0297 100644
--- a/apps/studio/data/integrations/github-connections-query.ts
+++ b/apps/studio/data/integrations/github-connections-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
export type GitHubConnectionsVariables = {
diff --git a/apps/studio/data/integrations/github-pull-requests-query.ts b/apps/studio/data/integrations/github-pull-requests-query.ts
index 76345211bdc..6adfbeaa95d 100644
--- a/apps/studio/data/integrations/github-pull-requests-query.ts
+++ b/apps/studio/data/integrations/github-pull-requests-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { integrationKeys } from './keys'
-import { ResponseError } from 'types'
-import { components } from 'data/api'
+import type { ResponseError } from 'types'
+import type { components } from 'data/api'
export type GitHubPullRequestsVariables = {
connectionId?: number
diff --git a/apps/studio/data/integrations/github-repositories-query.ts b/apps/studio/data/integrations/github-repositories-query.ts
index 07fc7ad3c9b..d03f7d06448 100644
--- a/apps/studio/data/integrations/github-repositories-query.ts
+++ b/apps/studio/data/integrations/github-repositories-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
export async function getGitHubRepositories(signal?: AbortSignal) {
diff --git a/apps/studio/data/integrations/integrations-query-org-only.ts b/apps/studio/data/integrations/integrations-query-org-only.ts
index 926897a5dba..93872903086 100644
--- a/apps/studio/data/integrations/integrations-query-org-only.ts
+++ b/apps/studio/data/integrations/integrations-query-org-only.ts
@@ -2,8 +2,8 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
-import { Integration, IntegrationsVariables } from './integrations.types'
+import type { ResponseError } from 'types'
+import type { Integration, IntegrationsVariables } from './integrations.types'
import { integrationKeys } from './keys'
export type IntegrationsResponse = Integration[]
diff --git a/apps/studio/data/integrations/integrations-query.ts b/apps/studio/data/integrations/integrations-query.ts
index 9ec6b5a0353..cae79239865 100644
--- a/apps/studio/data/integrations/integrations-query.ts
+++ b/apps/studio/data/integrations/integrations-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
export async function getIntegrations(signal?: AbortSignal) {
diff --git a/apps/studio/data/integrations/integrations-vercel-connection-sync-envs-mutation.ts b/apps/studio/data/integrations/integrations-vercel-connection-sync-envs-mutation.ts
index 78240f76f43..ebd690f9908 100644
--- a/apps/studio/data/integrations/integrations-vercel-connection-sync-envs-mutation.ts
+++ b/apps/studio/data/integrations/integrations-vercel-connection-sync-envs-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type IntegrationsVercelConnectionSyncEnvsVariables = {
connectionId: string
diff --git a/apps/studio/data/integrations/integrations-vercel-connections-create-mutation.ts b/apps/studio/data/integrations/integrations-vercel-connections-create-mutation.ts
index 7a4ab1b9bca..21f9050ddb7 100644
--- a/apps/studio/data/integrations/integrations-vercel-connections-create-mutation.ts
+++ b/apps/studio/data/integrations/integrations-vercel-connections-create-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { integrationKeys } from './keys'
-import { IntegrationConnectionsCreateVariables } from './integrations.types'
+import type { IntegrationConnectionsCreateVariables } from './integrations.types'
import { useIntegrationInstallationSnapshot } from 'state/integration-installation'
export async function createIntegrationVercelConnections({
diff --git a/apps/studio/data/integrations/integrations-vercel-installed-connection-delete-mutation.ts b/apps/studio/data/integrations/integrations-vercel-installed-connection-delete-mutation.ts
index 9a8de1036ba..c7a5d1b1ec0 100644
--- a/apps/studio/data/integrations/integrations-vercel-installed-connection-delete-mutation.ts
+++ b/apps/studio/data/integrations/integrations-vercel-installed-connection-delete-mutation.ts
@@ -1,7 +1,7 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { delete_, isResponseOk } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError, UserContent } from 'types'
+import type { ResponseError, UserContent } from 'types'
import { integrationKeys } from './keys'
import { toast } from 'react-hot-toast'
diff --git a/apps/studio/data/integrations/integrations-vercel-projects-query.ts b/apps/studio/data/integrations/integrations-vercel-projects-query.ts
index 5f21333cbc7..a7568f0539a 100644
--- a/apps/studio/data/integrations/integrations-vercel-projects-query.ts
+++ b/apps/studio/data/integrations/integrations-vercel-projects-query.ts
@@ -1,7 +1,7 @@
import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { useCallback } from 'react'
-import { VercelFramework } from './integrations.types'
+import type { VercelFramework } from './integrations.types'
import { integrationKeys } from './keys'
export type VercelProjectsVariables = {
diff --git a/apps/studio/data/integrations/integrations.types.ts b/apps/studio/data/integrations/integrations.types.ts
index efd87d3f4f6..844b531a735 100644
--- a/apps/studio/data/integrations/integrations.types.ts
+++ b/apps/studio/data/integrations/integrations.types.ts
@@ -1,4 +1,4 @@
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type VercelFramework =
| (
diff --git a/apps/studio/data/integrations/vercel-connection-update-mutate.ts b/apps/studio/data/integrations/vercel-connection-update-mutate.ts
index 0f48971a7df..89194cf0288 100644
--- a/apps/studio/data/integrations/vercel-connection-update-mutate.ts
+++ b/apps/studio/data/integrations/vercel-connection-update-mutate.ts
@@ -2,8 +2,8 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
-import { UpdateConnectionPayload } from './integrations.types'
+import type { ResponseError } from 'types'
+import type { UpdateConnectionPayload } from './integrations.types'
import { integrationKeys } from './keys'
export async function updateVercelConnection({
diff --git a/apps/studio/data/integrations/vercel-integration-create-mutation.ts b/apps/studio/data/integrations/vercel-integration-create-mutation.ts
index 15c7b7966e9..6798d5b4a24 100644
--- a/apps/studio/data/integrations/vercel-integration-create-mutation.ts
+++ b/apps/studio/data/integrations/vercel-integration-create-mutation.ts
@@ -3,7 +3,7 @@ import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { integrationKeys } from './keys'
import { toast } from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type VercelIntegrationCreateVariables = {
code: string
diff --git a/apps/studio/data/invoices/invoice-query.ts b/apps/studio/data/invoices/invoice-query.ts
index e1ff6e23fd5..3ad78d6d1db 100644
--- a/apps/studio/data/invoices/invoice-query.ts
+++ b/apps/studio/data/invoices/invoice-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { invoicesKeys } from './keys'
export type InvoiceVariables = {
diff --git a/apps/studio/data/invoices/invoices-count-query.ts b/apps/studio/data/invoices/invoices-count-query.ts
index 241ff0c5341..f301925b87d 100644
--- a/apps/studio/data/invoices/invoices-count-query.ts
+++ b/apps/studio/data/invoices/invoices-count-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { head } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { invoicesKeys } from './keys'
export type InvoicesCountVariables = {
diff --git a/apps/studio/data/invoices/invoices-overdue-query.ts b/apps/studio/data/invoices/invoices-overdue-query.ts
index a34b563e09f..a5597c76e1d 100644
--- a/apps/studio/data/invoices/invoices-overdue-query.ts
+++ b/apps/studio/data/invoices/invoices-overdue-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { invoicesKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type OverdueInvoicesResponse = components['schemas']['OverdueInvoiceCount']
diff --git a/apps/studio/data/invoices/invoices-query.ts b/apps/studio/data/invoices/invoices-query.ts
index 617fd32b6a3..f6248b0827b 100644
--- a/apps/studio/data/invoices/invoices-query.ts
+++ b/apps/studio/data/invoices/invoices-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { invoicesKeys } from './keys'
export type InvoicesVariables = {
diff --git a/apps/studio/data/invoices/org-invoice-upcoming-query.ts b/apps/studio/data/invoices/org-invoice-upcoming-query.ts
index 8d39a183fc3..cc6533fbcd1 100644
--- a/apps/studio/data/invoices/org-invoice-upcoming-query.ts
+++ b/apps/studio/data/invoices/org-invoice-upcoming-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { invoicesKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { PricingMetric } from 'data/analytics/org-daily-stats-query'
export type UpcomingInvoiceVariables = {
diff --git a/apps/studio/data/materialized-views/materialized-view-query.ts b/apps/studio/data/materialized-views/materialized-view-query.ts
index b718d8dbe83..0b714667b9b 100644
--- a/apps/studio/data/materialized-views/materialized-view-query.ts
+++ b/apps/studio/data/materialized-views/materialized-view-query.ts
@@ -1,4 +1,4 @@
-import { PostgresMaterializedView } from '@supabase/postgres-meta'
+import type { PostgresMaterializedView } from '@supabase/postgres-meta'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
diff --git a/apps/studio/data/misc/get-default-region-query.ts b/apps/studio/data/misc/get-default-region-query.ts
index fb5c623eaf2..31b0fbd20d5 100644
--- a/apps/studio/data/misc/get-default-region-query.ts
+++ b/apps/studio/data/misc/get-default-region-query.ts
@@ -1,6 +1,6 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { miscKeys } from './keys'
import { COUNTRY_LAT_LON } from 'components/interfaces/ProjectCreation/ProjectCreation.constants'
import { getDistanceLatLonKM } from 'lib/helpers'
diff --git a/apps/studio/data/misc/reset-password-mutation.ts b/apps/studio/data/misc/reset-password-mutation.ts
index c9f1e6cbb12..f4b4de7e327 100644
--- a/apps/studio/data/misc/reset-password-mutation.ts
+++ b/apps/studio/data/misc/reset-password-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ResetPasswordVariables = {
email: string
diff --git a/apps/studio/data/misc/signup-mutation.ts b/apps/studio/data/misc/signup-mutation.ts
index d056c3cbc21..4713a950cdb 100644
--- a/apps/studio/data/misc/signup-mutation.ts
+++ b/apps/studio/data/misc/signup-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SignUpVariables = {
email: string
diff --git a/apps/studio/data/network-restrictions/network-retrictions-apply-mutation.ts b/apps/studio/data/network-restrictions/network-retrictions-apply-mutation.ts
index 455594126ad..52b93336630 100644
--- a/apps/studio/data/network-restrictions/network-retrictions-apply-mutation.ts
+++ b/apps/studio/data/network-restrictions/network-retrictions-apply-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { networkRestrictionKeys } from './keys'
export type NetworkRestrictionsApplyVariables = {
diff --git a/apps/studio/data/notifications/notifications-dismiss-mutation.ts b/apps/studio/data/notifications/notifications-dismiss-mutation.ts
index 81f5e2c8b61..f7d4c9c7349 100644
--- a/apps/studio/data/notifications/notifications-dismiss-mutation.ts
+++ b/apps/studio/data/notifications/notifications-dismiss-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { notificationKeys } from './keys'
export type NotificationsDismissVariables = {
diff --git a/apps/studio/data/notifications/notifications-query.ts b/apps/studio/data/notifications/notifications-query.ts
index 031ba399f68..052cd4ae473 100644
--- a/apps/studio/data/notifications/notifications-query.ts
+++ b/apps/studio/data/notifications/notifications-query.ts
@@ -1,4 +1,4 @@
-import { Notification } from '@supabase/shared-types/out/notifications'
+import type { Notification } from '@supabase/shared-types/out/notifications'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
diff --git a/apps/studio/data/notifications/notifications-update-mutation.ts b/apps/studio/data/notifications/notifications-update-mutation.ts
index 88fa96b24c1..e601f8ba38c 100644
--- a/apps/studio/data/notifications/notifications-update-mutation.ts
+++ b/apps/studio/data/notifications/notifications-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { notificationKeys } from './keys'
export type NotificationsUpdateVariables = {
diff --git a/apps/studio/data/notifications/notifications-v2-archive-all-mutation.ts b/apps/studio/data/notifications/notifications-v2-archive-all-mutation.ts
index 02d0a507551..a8401911315 100644
--- a/apps/studio/data/notifications/notifications-v2-archive-all-mutation.ts
+++ b/apps/studio/data/notifications/notifications-v2-archive-all-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { notificationKeys } from './keys'
export async function archiveAllNotifications() {
diff --git a/apps/studio/data/notifications/notifications-v2-query.ts b/apps/studio/data/notifications/notifications-v2-query.ts
index 9df9b8e5412..669400d4faa 100644
--- a/apps/studio/data/notifications/notifications-v2-query.ts
+++ b/apps/studio/data/notifications/notifications-v2-query.ts
@@ -1,8 +1,8 @@
import { useInfiniteQuery, UseInfiniteQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { components } from 'data/api'
-import { ResponseError } from 'types'
+import type { components } from 'data/api'
+import type { ResponseError } from 'types'
import { notificationKeys } from './keys'
const NOTIFICATIONS_PAGE_LIMIT = 10
diff --git a/apps/studio/data/notifications/notifications-v2-summary-query.ts b/apps/studio/data/notifications/notifications-v2-summary-query.ts
index 8cf0b4ed091..8204845afb4 100644
--- a/apps/studio/data/notifications/notifications-v2-summary-query.ts
+++ b/apps/studio/data/notifications/notifications-v2-summary-query.ts
@@ -1,8 +1,8 @@
-import { Notification } from '@supabase/shared-types/out/notifications'
+import type { Notification } from '@supabase/shared-types/out/notifications'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { notificationKeys } from './keys'
export type NotificationsResponse = Notification[]
diff --git a/apps/studio/data/notifications/notifications-v2-update-mutation.ts b/apps/studio/data/notifications/notifications-v2-update-mutation.ts
index f8269138cf8..4ed3818a37e 100644
--- a/apps/studio/data/notifications/notifications-v2-update-mutation.ts
+++ b/apps/studio/data/notifications/notifications-v2-update-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type NotificationsUpdateVariables = {
ids: string[]
diff --git a/apps/studio/data/oauth/authorized-app-revoke-mutation.ts b/apps/studio/data/oauth/authorized-app-revoke-mutation.ts
index 304b58bbd6d..11fb114586b 100644
--- a/apps/studio/data/oauth/authorized-app-revoke-mutation.ts
+++ b/apps/studio/data/oauth/authorized-app-revoke-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { oauthAppKeys } from './keys'
export type AuthorizedAppRevokeVariables = {
diff --git a/apps/studio/data/oauth/authorized-apps-query.ts b/apps/studio/data/oauth/authorized-apps-query.ts
index b35995693a8..fcf8f11cf0d 100644
--- a/apps/studio/data/oauth/authorized-apps-query.ts
+++ b/apps/studio/data/oauth/authorized-apps-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { oauthAppKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type AuthorizedAppsVariables = {
slug?: string
diff --git a/apps/studio/data/oauth/oauth-app-create-mutation.ts b/apps/studio/data/oauth/oauth-app-create-mutation.ts
index ae71bad9e47..d47deb1f7bc 100644
--- a/apps/studio/data/oauth/oauth-app-create-mutation.ts
+++ b/apps/studio/data/oauth/oauth-app-create-mutation.ts
@@ -1,10 +1,10 @@
-import { OAuthScope } from '@supabase/shared-types/out/constants'
+import type { OAuthScope } from '@supabase/shared-types/out/constants'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { oauthAppKeys } from './keys'
export type OAuthAppCreateVariables = {
diff --git a/apps/studio/data/oauth/oauth-app-delete-mutation.ts b/apps/studio/data/oauth/oauth-app-delete-mutation.ts
index 94d982a7109..471a93f11c8 100644
--- a/apps/studio/data/oauth/oauth-app-delete-mutation.ts
+++ b/apps/studio/data/oauth/oauth-app-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { oauthAppKeys } from './keys'
export type OAuthAppDeleteVariables = {
diff --git a/apps/studio/data/oauth/oauth-app-update-mutation.ts b/apps/studio/data/oauth/oauth-app-update-mutation.ts
index ddd4ac6af18..8b2513bfc0c 100644
--- a/apps/studio/data/oauth/oauth-app-update-mutation.ts
+++ b/apps/studio/data/oauth/oauth-app-update-mutation.ts
@@ -1,10 +1,10 @@
-import { OAuthScope } from '@supabase/shared-types/out/constants'
+import type { OAuthScope } from '@supabase/shared-types/out/constants'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { put } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { oauthAppKeys } from './keys'
export type OAuthAppUpdateVariables = {
diff --git a/apps/studio/data/oauth/oauth-apps-query.ts b/apps/studio/data/oauth/oauth-apps-query.ts
index 3a30e47d489..63ea17efcd4 100644
--- a/apps/studio/data/oauth/oauth-apps-query.ts
+++ b/apps/studio/data/oauth/oauth-apps-query.ts
@@ -1,8 +1,8 @@
-import { OAuthScope } from '@supabase/shared-types/out/constants'
+import type { OAuthScope } from '@supabase/shared-types/out/constants'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { oauthAppKeys } from './keys'
export type OAuthAppsVariables = {
diff --git a/apps/studio/data/open-api/api-spec-query.ts b/apps/studio/data/open-api/api-spec-query.ts
index 489746e2b21..bbb362f2f59 100644
--- a/apps/studio/data/open-api/api-spec-query.ts
+++ b/apps/studio/data/open-api/api-spec-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { openApiKeys } from './keys'
export type OpenAPISpecVariables = {
diff --git a/apps/studio/data/organizations/free-project-limit-check-query.ts b/apps/studio/data/organizations/free-project-limit-check-query.ts
index bce36e2e6b3..8f7a46f9a90 100644
--- a/apps/studio/data/organizations/free-project-limit-check-query.ts
+++ b/apps/studio/data/organizations/free-project-limit-check-query.ts
@@ -1,7 +1,6 @@
-import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
+import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { useCallback } from 'react'
import { organizationKeys } from './keys'
export type MemberWithFreeProjectLimit = {
diff --git a/apps/studio/data/organizations/organization-audit-logs-query.ts b/apps/studio/data/organizations/organization-audit-logs-query.ts
index 269419e97bd..0c3a63c76a7 100644
--- a/apps/studio/data/organizations/organization-audit-logs-query.ts
+++ b/apps/studio/data/organizations/organization-audit-logs-query.ts
@@ -3,7 +3,7 @@ import dayjs from 'dayjs'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type AuditLog = {
diff --git a/apps/studio/data/organizations/organization-billing-subscription-preview.ts b/apps/studio/data/organizations/organization-billing-subscription-preview.ts
index 93d23d6133a..3d2ba7a852b 100644
--- a/apps/studio/data/organizations/organization-billing-subscription-preview.ts
+++ b/apps/studio/data/organizations/organization-billing-subscription-preview.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { post } from 'data/fetchers'
import { organizationKeys } from './keys'
-import { ResponseError } from 'types'
-import { SubscriptionTier } from 'data/subscriptions/types'
+import type { ResponseError } from 'types'
+import type { SubscriptionTier } from 'data/subscriptions/types'
export type OrganizationBillingSubscriptionPreviewVariables = {
organizationSlug?: string
diff --git a/apps/studio/data/organizations/organization-by-fly-organization-id-mutation.ts b/apps/studio/data/organizations/organization-by-fly-organization-id-mutation.ts
index e8525103870..9e171d74c85 100644
--- a/apps/studio/data/organizations/organization-by-fly-organization-id-mutation.ts
+++ b/apps/studio/data/organizations/organization-by-fly-organization-id-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import toast from 'react-hot-toast'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationByFlyOrgIdVariables = {
flyOrganizationId: string
diff --git a/apps/studio/data/organizations/organization-create-mutation.ts b/apps/studio/data/organizations/organization-create-mutation.ts
index 40966f240ee..daa82c1e998 100644
--- a/apps/studio/data/organizations/organization-create-mutation.ts
+++ b/apps/studio/data/organizations/organization-create-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
import { permissionKeys } from 'data/permissions/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationCreateVariables = {
diff --git a/apps/studio/data/organizations/organization-customer-profile-query.ts b/apps/studio/data/organizations/organization-customer-profile-query.ts
index a5719b52316..63bf11ab89e 100644
--- a/apps/studio/data/organizations/organization-customer-profile-query.ts
+++ b/apps/studio/data/organizations/organization-customer-profile-query.ts
@@ -1,9 +1,8 @@
-import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
+import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { useCallback } from 'react'
import { organizationKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationCustomerProfileVariables = {
slug?: string
diff --git a/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts b/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts
index 47f3cd7a942..c03b3d5a134 100644
--- a/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts
+++ b/apps/studio/data/organizations/organization-customer-profile-update-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationCustomerProfileUpdateVariables = {
diff --git a/apps/studio/data/organizations/organization-delete-mutation.ts b/apps/studio/data/organizations/organization-delete-mutation.ts
index db4af223347..e075389270e 100644
--- a/apps/studio/data/organizations/organization-delete-mutation.ts
+++ b/apps/studio/data/organizations/organization-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
import { permissionKeys } from 'data/permissions/keys'
diff --git a/apps/studio/data/organizations/organization-join-decline-mutation.ts b/apps/studio/data/organizations/organization-join-decline-mutation.ts
index 480bcd1a57e..397ceeb0cad 100644
--- a/apps/studio/data/organizations/organization-join-decline-mutation.ts
+++ b/apps/studio/data/organizations/organization-join-decline-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationJoinDeclineVariables = {
slug: string
diff --git a/apps/studio/data/organizations/organization-join-mutation.ts b/apps/studio/data/organizations/organization-join-mutation.ts
index 0a7c407e69c..3f07c2d4757 100644
--- a/apps/studio/data/organizations/organization-join-mutation.ts
+++ b/apps/studio/data/organizations/organization-join-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationJoinVariables = {
diff --git a/apps/studio/data/organizations/organization-join-token-validation-query.ts b/apps/studio/data/organizations/organization-join-token-validation-query.ts
index 09c7af60ccd..cbc28c9d778 100644
--- a/apps/studio/data/organizations/organization-join-token-validation-query.ts
+++ b/apps/studio/data/organizations/organization-join-token-validation-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { components } from 'data/api'
-import { ResponseError } from 'types'
+import type { components } from 'data/api'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationJoinTokenValidationVariables = {
diff --git a/apps/studio/data/organizations/organization-member-delete-mutation.ts b/apps/studio/data/organizations/organization-member-delete-mutation.ts
index 9c7092b6222..cc888e9787b 100644
--- a/apps/studio/data/organizations/organization-member-delete-mutation.ts
+++ b/apps/studio/data/organizations/organization-member-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationMemberDeleteVariables = {
diff --git a/apps/studio/data/organizations/organization-member-invite-create-mutation.ts b/apps/studio/data/organizations/organization-member-invite-create-mutation.ts
index d9534743384..487c8b0ae44 100644
--- a/apps/studio/data/organizations/organization-member-invite-create-mutation.ts
+++ b/apps/studio/data/organizations/organization-member-invite-create-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationMemberInviteCreateVariables = {
diff --git a/apps/studio/data/organizations/organization-member-invite-delete-mutation.ts b/apps/studio/data/organizations/organization-member-invite-delete-mutation.ts
index 97ffcb9d626..41a640feb65 100644
--- a/apps/studio/data/organizations/organization-member-invite-delete-mutation.ts
+++ b/apps/studio/data/organizations/organization-member-invite-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationMemberInviteDeleteVariables = {
diff --git a/apps/studio/data/organizations/organization-member-update-mutation.ts b/apps/studio/data/organizations/organization-member-update-mutation.ts
index 15181506d5e..58f6fa7b0b2 100644
--- a/apps/studio/data/organizations/organization-member-update-mutation.ts
+++ b/apps/studio/data/organizations/organization-member-update-mutation.ts
@@ -3,7 +3,7 @@ import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { organizationKeys } from './keys'
import { toast } from 'react-hot-toast'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationMemberUpdateVariables = {
slug: string
diff --git a/apps/studio/data/organizations/organization-members-query.ts b/apps/studio/data/organizations/organization-members-query.ts
index bb7d124e428..581f0a2dd50 100644
--- a/apps/studio/data/organizations/organization-members-query.ts
+++ b/apps/studio/data/organizations/organization-members-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationMembersVariables = {
diff --git a/apps/studio/data/organizations/organization-payment-method-delete-mutation.ts b/apps/studio/data/organizations/organization-payment-method-delete-mutation.ts
index 34d8181755d..ce3bf220dc1 100644
--- a/apps/studio/data/organizations/organization-payment-method-delete-mutation.ts
+++ b/apps/studio/data/organizations/organization-payment-method-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
export type OrganizationPaymentMethodDeleteVariables = {
diff --git a/apps/studio/data/organizations/organization-payment-method-setup-intent-mutation.ts b/apps/studio/data/organizations/organization-payment-method-setup-intent-mutation.ts
index e442afa877f..d6f581f32ca 100644
--- a/apps/studio/data/organizations/organization-payment-method-setup-intent-mutation.ts
+++ b/apps/studio/data/organizations/organization-payment-method-setup-intent-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationPaymentMethodSetupIntentVariables = {
slug: string
diff --git a/apps/studio/data/organizations/organization-payment-methods-query.ts b/apps/studio/data/organizations/organization-payment-methods-query.ts
index 1632feff6c4..2ab0d9ca69f 100644
--- a/apps/studio/data/organizations/organization-payment-methods-query.ts
+++ b/apps/studio/data/organizations/organization-payment-methods-query.ts
@@ -1,9 +1,8 @@
-import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
+import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { useCallback } from 'react'
import { organizationKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationPaymentMethodsVariables = { slug?: string }
export type OrganizationPaymentMethod = {
diff --git a/apps/studio/data/organizations/organization-roles-query.ts b/apps/studio/data/organizations/organization-roles-query.ts
index 5079dcb0f4b..517d6359386 100644
--- a/apps/studio/data/organizations/organization-roles-query.ts
+++ b/apps/studio/data/organizations/organization-roles-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError, Role } from 'types'
+import type { ResponseError, Role } from 'types'
import { organizationKeys } from './keys'
export type OrganizationRolesVariables = {
diff --git a/apps/studio/data/organizations/organization-tax-ids-query.ts b/apps/studio/data/organizations/organization-tax-ids-query.ts
index df39b05b599..8b650ef6089 100644
--- a/apps/studio/data/organizations/organization-tax-ids-query.ts
+++ b/apps/studio/data/organizations/organization-tax-ids-query.ts
@@ -3,7 +3,7 @@ import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { useCallback } from 'react'
import { organizationKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrganizationTaxIDsVariables = {
slug?: string
diff --git a/apps/studio/data/organizations/organization-tax-ids-update-mutation.ts b/apps/studio/data/organizations/organization-tax-ids-update-mutation.ts
index 69153bdd356..9a87e5b4c3a 100644
--- a/apps/studio/data/organizations/organization-tax-ids-update-mutation.ts
+++ b/apps/studio/data/organizations/organization-tax-ids-update-mutation.ts
@@ -3,9 +3,9 @@ import { toast } from 'react-hot-toast'
import { delete_, post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
-import { TaxId } from './organization-tax-ids-query'
+import type { TaxId } from './organization-tax-ids-query'
export interface TaxIdValue {
id: string
diff --git a/apps/studio/data/organizations/organization-update-mutation.ts b/apps/studio/data/organizations/organization-update-mutation.ts
index 7550c0637da..b89d3ac700c 100644
--- a/apps/studio/data/organizations/organization-update-mutation.ts
+++ b/apps/studio/data/organizations/organization-update-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { organizationKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type OrganizationUpdateVariables = {
slug: string
diff --git a/apps/studio/data/organizations/organizations-query.ts b/apps/studio/data/organizations/organizations-query.ts
index be097cd02e5..5d081a9d91f 100644
--- a/apps/studio/data/organizations/organizations-query.ts
+++ b/apps/studio/data/organizations/organizations-query.ts
@@ -2,7 +2,7 @@ import { QueryClient, useQuery, useQueryClient, UseQueryOptions } from '@tanstac
import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { useCallback } from 'react'
-import { Organization, ResponseError } from 'types'
+import type { Organization, ResponseError } from 'types'
import { organizationKeys } from './keys'
export async function getOrganizations(signal?: AbortSignal): Promise<Organization[]> {
diff --git a/apps/studio/data/permissions/permissions-query.ts b/apps/studio/data/permissions/permissions-query.ts
index 6d685c87c49..e247de4f916 100644
--- a/apps/studio/data/permissions/permissions-query.ts
+++ b/apps/studio/data/permissions/permissions-query.ts
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL, IS_PLATFORM } from 'lib/constants'
-import { Permission, ResponseError } from 'types'
+import type { Permission, ResponseError } from 'types'
import { permissionKeys } from './keys'
export type PermissionsResponse = Permission[]
diff --git a/apps/studio/data/pg-sodium-keys/pg-sodium-key-create-mutation.ts b/apps/studio/data/pg-sodium-keys/pg-sodium-key-create-mutation.ts
index 930e32af5de..0bb24027091 100644
--- a/apps/studio/data/pg-sodium-keys/pg-sodium-key-create-mutation.ts
+++ b/apps/studio/data/pg-sodium-keys/pg-sodium-key-create-mutation.ts
@@ -2,8 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import toast from 'react-hot-toast'
import { executeSql } from 'data/sql/execute-sql-query'
-import { sqlKeys } from 'data/sql/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { pgSodiumKeys } from './keys'
export type CreateEncryptionKeyVariables = {
diff --git a/apps/studio/data/pg-sodium-keys/pg-sodium-key-delete-mutation.ts b/apps/studio/data/pg-sodium-keys/pg-sodium-key-delete-mutation.ts
index a5bdac551d7..e6dfb8cfc0c 100644
--- a/apps/studio/data/pg-sodium-keys/pg-sodium-key-delete-mutation.ts
+++ b/apps/studio/data/pg-sodium-keys/pg-sodium-key-delete-mutation.ts
@@ -3,9 +3,8 @@ import toast from 'react-hot-toast'
import { Query } from 'components/grid/query/Query'
import { executeSql } from 'data/sql/execute-sql-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { pgSodiumKeys } from './keys'
-import { sqlKeys } from 'data/sql/keys'
export type VaultSecretDeleteVariables = {
projectRef: string
diff --git a/apps/studio/data/privileges/column-privileges-grant-mutation.ts b/apps/studio/data/privileges/column-privileges-grant-mutation.ts
index d068d9a0cff..54c551ea636 100644
--- a/apps/studio/data/privileges/column-privileges-grant-mutation.ts
+++ b/apps/studio/data/privileges/column-privileges-grant-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
export type ColumnPrivilegesGrant = components['schemas']['GrantColumnPrivilegesBody']
diff --git a/apps/studio/data/privileges/column-privileges-query.ts b/apps/studio/data/privileges/column-privileges-query.ts
index e2e69eda20f..06b4242489d 100644
--- a/apps/studio/data/privileges/column-privileges-query.ts
+++ b/apps/studio/data/privileges/column-privileges-query.ts
@@ -1,9 +1,9 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type ColumnPrivilegesVariables = {
projectRef?: string
diff --git a/apps/studio/data/privileges/column-privileges-revoke-mutation.ts b/apps/studio/data/privileges/column-privileges-revoke-mutation.ts
index 71ebaa7e9b7..5a2bd2d0e51 100644
--- a/apps/studio/data/privileges/column-privileges-revoke-mutation.ts
+++ b/apps/studio/data/privileges/column-privileges-revoke-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
export type ColumnPrivilegesRevoke = components['schemas']['RevokeColumnPrivilegesBody']
diff --git a/apps/studio/data/privileges/table-privileges-grant-mutation.ts b/apps/studio/data/privileges/table-privileges-grant-mutation.ts
index 1865b497d13..a609b0f6ffb 100644
--- a/apps/studio/data/privileges/table-privileges-grant-mutation.ts
+++ b/apps/studio/data/privileges/table-privileges-grant-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
export type TablePrivilegesGrant = components['schemas']['GrantTablePrivilegesBody']
diff --git a/apps/studio/data/privileges/table-privileges-query.ts b/apps/studio/data/privileges/table-privileges-query.ts
index 0d7572f732d..1e025e6d3db 100644
--- a/apps/studio/data/privileges/table-privileges-query.ts
+++ b/apps/studio/data/privileges/table-privileges-query.ts
@@ -1,8 +1,8 @@
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
export type TablePrivilegesVariables = {
diff --git a/apps/studio/data/privileges/table-privileges-revoke-mutation.ts b/apps/studio/data/privileges/table-privileges-revoke-mutation.ts
index 337800c5c62..ae352fbb808 100644
--- a/apps/studio/data/privileges/table-privileges-revoke-mutation.ts
+++ b/apps/studio/data/privileges/table-privileges-revoke-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import toast from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { privilegeKeys } from './keys'
export type TablePrivilegesRevoke = components['schemas']['RevokeTablePrivilegesBody']
diff --git a/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts b/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts
index d0d5c440e35..ad093941f40 100644
--- a/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts
+++ b/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts
@@ -1,8 +1,8 @@
-import { AuthMFAGetAuthenticatorAssuranceLevelResponse } from '@supabase/supabase-js'
+import type { AuthMFAGetAuthenticatorAssuranceLevelResponse } from '@supabase/supabase-js'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { auth } from 'lib/gotrue'
import { profileKeys } from './keys'
-import { Profile } from './types'
+import type { Profile } from './types'
export type ProfileResponse = Profile
diff --git a/apps/studio/data/profile/mfa-challenge-and-verify-mutation.ts b/apps/studio/data/profile/mfa-challenge-and-verify-mutation.ts
index 7edd05daefe..29f3d141661 100644
--- a/apps/studio/data/profile/mfa-challenge-and-verify-mutation.ts
+++ b/apps/studio/data/profile/mfa-challenge-and-verify-mutation.ts
@@ -1,4 +1,4 @@
-import { AuthMFAVerifyResponse, MFAChallengeAndVerifyParams } from '@supabase/supabase-js'
+import type { AuthMFAVerifyResponse, MFAChallengeAndVerifyParams } from '@supabase/supabase-js'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { auth } from 'lib/gotrue'
import { profileKeys } from './keys'
diff --git a/apps/studio/data/profile/mfa-enroll-mutation.ts b/apps/studio/data/profile/mfa-enroll-mutation.ts
index 332f3e7aa7a..905f0a18c2c 100644
--- a/apps/studio/data/profile/mfa-enroll-mutation.ts
+++ b/apps/studio/data/profile/mfa-enroll-mutation.ts
@@ -1,4 +1,4 @@
-import { AuthMFAEnrollResponse, MFAEnrollParams } from '@supabase/supabase-js'
+import type { AuthMFAEnrollResponse, MFAEnrollParams } from '@supabase/supabase-js'
import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { auth } from 'lib/gotrue'
import { toast } from 'react-hot-toast'
diff --git a/apps/studio/data/profile/mfa-list-factors-query.ts b/apps/studio/data/profile/mfa-list-factors-query.ts
index 108cce7bbdb..a4a7f9ae8c4 100644
--- a/apps/studio/data/profile/mfa-list-factors-query.ts
+++ b/apps/studio/data/profile/mfa-list-factors-query.ts
@@ -1,4 +1,4 @@
-import { AuthMFAListFactorsResponse, Factor } from '@supabase/supabase-js'
+import type { AuthMFAListFactorsResponse, Factor } from '@supabase/supabase-js'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { auth } from 'lib/gotrue'
import { profileKeys } from './keys'
diff --git a/apps/studio/data/profile/mfa-unenroll-mutation.ts b/apps/studio/data/profile/mfa-unenroll-mutation.ts
index e10a772e0f3..581d83a78f5 100644
--- a/apps/studio/data/profile/mfa-unenroll-mutation.ts
+++ b/apps/studio/data/profile/mfa-unenroll-mutation.ts
@@ -1,4 +1,4 @@
-import { AuthMFAUnenrollResponse, MFAUnenrollParams } from '@supabase/supabase-js'
+import type { AuthMFAUnenrollResponse, MFAUnenrollParams } from '@supabase/supabase-js'
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { auth } from 'lib/gotrue'
import { profileKeys } from './keys'
diff --git a/apps/studio/data/profile/profile-audit-logs-query.ts b/apps/studio/data/profile/profile-audit-logs-query.ts
index 6c536df3795..5b850b54a73 100644
--- a/apps/studio/data/profile/profile-audit-logs-query.ts
+++ b/apps/studio/data/profile/profile-audit-logs-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { AuditLog } from 'data/organizations/organization-audit-logs-query'
-import { ResponseError } from 'types'
+import type { AuditLog } from 'data/organizations/organization-audit-logs-query'
+import type { ResponseError } from 'types'
import { profileKeys } from './keys'
export type ProfileAuditLogsVariables = {
diff --git a/apps/studio/data/profile/profile-create-mutation.ts b/apps/studio/data/profile/profile-create-mutation.ts
index 37ff0d23424..cecd1ad8276 100644
--- a/apps/studio/data/profile/profile-create-mutation.ts
+++ b/apps/studio/data/profile/profile-create-mutation.ts
@@ -5,9 +5,9 @@ import { organizationKeys } from 'data/organizations/keys'
import { permissionKeys } from 'data/permissions/keys'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { profileKeys } from './keys'
-import { Profile } from './types'
+import type { Profile } from './types'
export type ProfileResponse = Profile
diff --git a/apps/studio/data/profile/profile-query.ts b/apps/studio/data/profile/profile-query.ts
index 86a59c86e26..1a536b77864 100644
--- a/apps/studio/data/profile/profile-query.ts
+++ b/apps/studio/data/profile/profile-query.ts
@@ -2,9 +2,9 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
import { API_URL, IS_PLATFORM } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { profileKeys } from './keys'
-import { Profile } from './types'
+import type { Profile } from './types'
export type ProfileResponse = Profile
diff --git a/apps/studio/data/profile/profile-update-mutation.ts b/apps/studio/data/profile/profile-update-mutation.ts
index 39cc5bd1c6c..eed2847c746 100644
--- a/apps/studio/data/profile/profile-update-mutation.ts
+++ b/apps/studio/data/profile/profile-update-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { profileKeys } from './keys'
export type ProfileUpdateVariables = {
diff --git a/apps/studio/data/profile/types.ts b/apps/studio/data/profile/types.ts
index f9224301270..c16127203bb 100644
--- a/apps/studio/data/profile/types.ts
+++ b/apps/studio/data/profile/types.ts
@@ -1,4 +1,4 @@
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type Profile = components['schemas']['ProfileResponse']
diff --git a/apps/studio/data/projects/project-by-fly-extension-id-mutation.ts b/apps/studio/data/projects/project-by-fly-extension-id-mutation.ts
index fc6b3e32740..63dcc99cf13 100644
--- a/apps/studio/data/projects/project-by-fly-extension-id-mutation.ts
+++ b/apps/studio/data/projects/project-by-fly-extension-id-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import toast from 'react-hot-toast'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectByFlyExtensionIdVariables = {
flyExtensionId: string
diff --git a/apps/studio/data/projects/project-create-mutation.ts b/apps/studio/data/projects/project-create-mutation.ts
index 411de893df8..dd46ed8026e 100644
--- a/apps/studio/data/projects/project-create-mutation.ts
+++ b/apps/studio/data/projects/project-create-mutation.ts
@@ -1,10 +1,10 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { post } from 'data/fetchers'
-import { PRICING_TIER_PRODUCT_IDS, PROVIDERS } from 'lib/constants'
-import { ResponseError } from 'types'
+import { PROVIDERS } from 'lib/constants'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
export type DbInstanceSize = components['schemas']['DesiredInstanceSize']
diff --git a/apps/studio/data/projects/project-delete-mutation.ts b/apps/studio/data/projects/project-delete-mutation.ts
index feab99f1c68..6eaeaf1055b 100644
--- a/apps/studio/data/projects/project-delete-mutation.ts
+++ b/apps/studio/data/projects/project-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
export type ProjectDeleteVariables = {
diff --git a/apps/studio/data/projects/project-detail-query.ts b/apps/studio/data/projects/project-detail-query.ts
index 4e346a22b0d..971fbbea5cd 100644
--- a/apps/studio/data/projects/project-detail-query.ts
+++ b/apps/studio/data/projects/project-detail-query.ts
@@ -1,9 +1,9 @@
import { QueryClient, useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type ProjectDetailVariables = { ref?: string }
diff --git a/apps/studio/data/projects/project-pause-mutation.ts b/apps/studio/data/projects/project-pause-mutation.ts
index a7ceada4d5a..c4de3a1f733 100644
--- a/apps/studio/data/projects/project-pause-mutation.ts
+++ b/apps/studio/data/projects/project-pause-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectPauseVariables = {
ref: string
diff --git a/apps/studio/data/projects/project-restart-mutation.ts b/apps/studio/data/projects/project-restart-mutation.ts
index 13ced13112d..f6de0ae1be2 100644
--- a/apps/studio/data/projects/project-restart-mutation.ts
+++ b/apps/studio/data/projects/project-restart-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectRestartVariables = {
ref: string
diff --git a/apps/studio/data/projects/project-restart-services-mutation.ts b/apps/studio/data/projects/project-restart-services-mutation.ts
index 0739ab2e42b..edbb5f70935 100644
--- a/apps/studio/data/projects/project-restart-services-mutation.ts
+++ b/apps/studio/data/projects/project-restart-services-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectRestartServicesVariables = {
ref: string
diff --git a/apps/studio/data/projects/project-restore-mutation.ts b/apps/studio/data/projects/project-restore-mutation.ts
index 4fe249a0952..f4ef82e3772 100644
--- a/apps/studio/data/projects/project-restore-mutation.ts
+++ b/apps/studio/data/projects/project-restore-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectRestoreVariables = {
ref: string
diff --git a/apps/studio/data/projects/project-status-query.ts b/apps/studio/data/projects/project-status-query.ts
index d5d4339d424..1d2ac92f0cc 100644
--- a/apps/studio/data/projects/project-status-query.ts
+++ b/apps/studio/data/projects/project-status-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
export type ProjectStatusVariables = {
diff --git a/apps/studio/data/projects/project-type-generation-query.ts b/apps/studio/data/projects/project-type-generation-query.ts
index f950459d43f..290c88d0316 100644
--- a/apps/studio/data/projects/project-type-generation-query.ts
+++ b/apps/studio/data/projects/project-type-generation-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
export type GenerateTypesVariables = { ref?: string }
diff --git a/apps/studio/data/projects/project-update-mutation.ts b/apps/studio/data/projects/project-update-mutation.ts
index 92de3c042b9..00f4d457f5e 100644
--- a/apps/studio/data/projects/project-update-mutation.ts
+++ b/apps/studio/data/projects/project-update-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
export type ProjectUpdateVariables = {
diff --git a/apps/studio/data/projects/project-upgrade-mutation.ts b/apps/studio/data/projects/project-upgrade-mutation.ts
index 8bec6df6c10..8d1040c73fc 100644
--- a/apps/studio/data/projects/project-upgrade-mutation.ts
+++ b/apps/studio/data/projects/project-upgrade-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectUpgradeVariables = {
ref: string
diff --git a/apps/studio/data/projects/projects-query.ts b/apps/studio/data/projects/projects-query.ts
index 3b1276a1746..3bb52c015df 100644
--- a/apps/studio/data/projects/projects-query.ts
+++ b/apps/studio/data/projects/projects-query.ts
@@ -1,11 +1,11 @@
import { QueryClient, useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
import { useCallback, useRef } from 'react'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { projectKeys } from './keys'
-import { Project } from './project-detail-query'
+import type { Project } from './project-detail-query'
export type ProjectsVariables = {
ref?: string
diff --git a/apps/studio/data/read-replicas/load-balancers-query.ts b/apps/studio/data/read-replicas/load-balancers-query.ts
index e80df9f15ed..38c34fadd49 100644
--- a/apps/studio/data/read-replicas/load-balancers-query.ts
+++ b/apps/studio/data/read-replicas/load-balancers-query.ts
@@ -1,9 +1,9 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get, handleError } from 'data/fetchers'
import { useProjectDetailQuery } from 'data/projects/project-detail-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { replicaKeys } from './keys'
export type LoadBalancersVariables = {
diff --git a/apps/studio/data/read-replicas/replica-remove-mutation.ts b/apps/studio/data/read-replicas/replica-remove-mutation.ts
index 416830d6a6b..6cbc22aab3e 100644
--- a/apps/studio/data/read-replicas/replica-remove-mutation.ts
+++ b/apps/studio/data/read-replicas/replica-remove-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { replicaKeys } from './keys'
-import { Database } from './replicas-query'
+import type { Database } from './replicas-query'
export type ReadReplicaRemoveVariables = {
projectRef: string
diff --git a/apps/studio/data/read-replicas/replica-setup-mutation.ts b/apps/studio/data/read-replicas/replica-setup-mutation.ts
index 44f44e32e4e..6fc0f28cc0b 100644
--- a/apps/studio/data/read-replicas/replica-setup-mutation.ts
+++ b/apps/studio/data/read-replicas/replica-setup-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { replicaKeys } from './keys'
-import { Database } from './replicas-query'
+import type { Database } from './replicas-query'
export type Region =
| 'us-east-1'
diff --git a/apps/studio/data/read-replicas/replicas-query.ts b/apps/studio/data/read-replicas/replicas-query.ts
index a4ad7f648db..545f17b34e0 100644
--- a/apps/studio/data/read-replicas/replicas-query.ts
+++ b/apps/studio/data/read-replicas/replicas-query.ts
@@ -1,9 +1,9 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { get } from 'data/fetchers'
import { useProjectDetailQuery } from 'data/projects/project-detail-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { replicaKeys } from './keys'
export type ReadReplicasVariables = {
diff --git a/apps/studio/data/read-replicas/replicas-status-query.ts b/apps/studio/data/read-replicas/replicas-status-query.ts
index a0430316a42..b1645bb7cdb 100644
--- a/apps/studio/data/read-replicas/replicas-status-query.ts
+++ b/apps/studio/data/read-replicas/replicas-status-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { useProjectDetailQuery } from 'data/projects/project-detail-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { replicaKeys } from './keys'
export type ReadReplicasStatusesVariables = {
diff --git a/apps/studio/data/secrets/secrets-create-mutation.ts b/apps/studio/data/secrets/secrets-create-mutation.ts
index 7b97c4275c2..d2d6354de70 100644
--- a/apps/studio/data/secrets/secrets-create-mutation.ts
+++ b/apps/studio/data/secrets/secrets-create-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { secretsKeys } from './keys'
export type SecretsCreateVariables = {
diff --git a/apps/studio/data/secrets/secrets-delete-mutation.ts b/apps/studio/data/secrets/secrets-delete-mutation.ts
index 26768ac5ef8..c887aae19d0 100644
--- a/apps/studio/data/secrets/secrets-delete-mutation.ts
+++ b/apps/studio/data/secrets/secrets-delete-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { secretsKeys } from './keys'
export type SecretsDeleteVariables = {
diff --git a/apps/studio/data/secrets/secrets-query.ts b/apps/studio/data/secrets/secrets-query.ts
index 0ffabb9a5dd..a06a5fbc96d 100644
--- a/apps/studio/data/secrets/secrets-query.ts
+++ b/apps/studio/data/secrets/secrets-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { secretsKeys } from './keys'
-import { ResponseError } from 'types'
-import { components } from 'data/api'
+import type { ResponseError } from 'types'
+import type { components } from 'data/api'
export type SecretsVariables = {
projectRef?: string
diff --git a/apps/studio/data/service-status/edge-functions-status-query.ts b/apps/studio/data/service-status/edge-functions-status-query.ts
index 6e8eacaca36..9010e058064 100644
--- a/apps/studio/data/service-status/edge-functions-status-query.ts
+++ b/apps/studio/data/service-status/edge-functions-status-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'lib/common/fetch'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { serviceStatusKeys } from './keys'
export type EdgeFunctionServiceStatusVariables = {
diff --git a/apps/studio/data/service-status/postgres-service-status-query.ts b/apps/studio/data/service-status/postgres-service-status-query.ts
index db3a22a7311..0ba96d5e079 100644
--- a/apps/studio/data/service-status/postgres-service-status-query.ts
+++ b/apps/studio/data/service-status/postgres-service-status-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { post } from 'lib/common/fetch'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { serviceStatusKeys } from './keys'
import { API_URL } from 'lib/constants'
diff --git a/apps/studio/data/service-status/service-status-query.ts b/apps/studio/data/service-status/service-status-query.ts
index 38c82b0e23e..332d01079db 100644
--- a/apps/studio/data/service-status/service-status-query.ts
+++ b/apps/studio/data/service-status/service-status-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { serviceStatusKeys } from './keys'
export type ProjectServiceStatusVariables = {
diff --git a/apps/studio/data/sql/keys.ts b/apps/studio/data/sql/keys.ts
index b651bbfe087..06fc4f4c803 100644
--- a/apps/studio/data/sql/keys.ts
+++ b/apps/studio/data/sql/keys.ts
@@ -1,4 +1,4 @@
-import { QueryKey } from '@tanstack/react-query'
+import type { QueryKey } from '@tanstack/react-query'
export const sqlKeys = {
query: (projectRef: string | undefined, queryKey: QueryKey) =>
diff --git a/apps/studio/data/ssl-enforcement/ssl-enforcement-update-mutation.ts b/apps/studio/data/ssl-enforcement/ssl-enforcement-update-mutation.ts
index ca0e41cf65b..e4b5d88f2ad 100644
--- a/apps/studio/data/ssl-enforcement/ssl-enforcement-update-mutation.ts
+++ b/apps/studio/data/ssl-enforcement/ssl-enforcement-update-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { put } from 'lib/common/fetch'
import { API_ADMIN_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { sslEnforcementKeys } from './keys'
export type SSLEnforcementUpdateVariables = {
diff --git a/apps/studio/data/storage/bucket-create-mutation.ts b/apps/studio/data/storage/bucket-create-mutation.ts
index 56602c3b993..16089a2a175 100644
--- a/apps/studio/data/storage/bucket-create-mutation.ts
+++ b/apps/studio/data/storage/bucket-create-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { storageKeys } from './keys'
export type BucketCreateVariables = {
diff --git a/apps/studio/data/storage/bucket-delete-mutation.ts b/apps/studio/data/storage/bucket-delete-mutation.ts
index 399dcc20d1e..63142b9c93c 100644
--- a/apps/studio/data/storage/bucket-delete-mutation.ts
+++ b/apps/studio/data/storage/bucket-delete-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { delete_, post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { storageKeys } from './keys'
export type BucketDeleteVariables = {
diff --git a/apps/studio/data/storage/bucket-empty-mutation.ts b/apps/studio/data/storage/bucket-empty-mutation.ts
index 2e14636ccb4..ab50fda6feb 100644
--- a/apps/studio/data/storage/bucket-empty-mutation.ts
+++ b/apps/studio/data/storage/bucket-empty-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { storageKeys } from './keys'
export type BucketEmptyVariables = {
diff --git a/apps/studio/data/storage/bucket-update-mutation.ts b/apps/studio/data/storage/bucket-update-mutation.ts
index ec920849b1e..be17dd7f714 100644
--- a/apps/studio/data/storage/bucket-update-mutation.ts
+++ b/apps/studio/data/storage/bucket-update-mutation.ts
@@ -3,7 +3,7 @@ import { toast } from 'react-hot-toast'
import { patch } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { storageKeys } from './keys'
export type BucketUpdateVariables = {
diff --git a/apps/studio/data/storage/buckets-query.ts b/apps/studio/data/storage/buckets-query.ts
index 762df8b94bf..613578063d1 100644
--- a/apps/studio/data/storage/buckets-query.ts
+++ b/apps/studio/data/storage/buckets-query.ts
@@ -3,7 +3,7 @@ import { get } from 'data/fetchers'
import { API_URL } from 'lib/constants'
import { useCallback } from 'react'
import { storageKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type BucketsVariables = { projectRef?: string }
diff --git a/apps/studio/data/stripe/setup-intent-mutation.ts b/apps/studio/data/stripe/setup-intent-mutation.ts
index cad5489d964..37d9153a66b 100644
--- a/apps/studio/data/stripe/setup-intent-mutation.ts
+++ b/apps/studio/data/stripe/setup-intent-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type SetupIntentVariables = {
hcaptchaToken: string
diff --git a/apps/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.ts b/apps/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.ts
index de320dbf0a6..a5ecb39b648 100644
--- a/apps/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.ts
+++ b/apps/studio/data/subscriptions/org-subscription-cancel-schedule-mutation.ts
@@ -2,7 +2,7 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { subscriptionKeys } from './keys'
export type OrganizationBillingSubscriptionCancelScheduleVariables = {
diff --git a/apps/studio/data/subscriptions/org-subscription-query.ts b/apps/studio/data/subscriptions/org-subscription-query.ts
index c28c69c2443..d4faeb1d255 100644
--- a/apps/studio/data/subscriptions/org-subscription-query.ts
+++ b/apps/studio/data/subscriptions/org-subscription-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { subscriptionKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type OrgSubscriptionVariables = {
orgSlug?: string
diff --git a/apps/studio/data/subscriptions/org-subscription-update-mutation.ts b/apps/studio/data/subscriptions/org-subscription-update-mutation.ts
index da5490d4db4..bb1869fa064 100644
--- a/apps/studio/data/subscriptions/org-subscription-update-mutation.ts
+++ b/apps/studio/data/subscriptions/org-subscription-update-mutation.ts
@@ -1,10 +1,10 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { put } from 'data/fetchers'
import { toast } from 'react-hot-toast'
-import { ResponseError } from 'types/base'
+import type { ResponseError } from 'types/base'
import { subscriptionKeys } from './keys'
import { usageKeys } from 'data/usage/keys'
-import { SubscriptionTier } from './types'
+import type { SubscriptionTier } from './types'
import { invoicesKeys } from 'data/invoices/keys'
export type OrgSubscriptionUpdateVariables = {
diff --git a/apps/studio/data/subscriptions/project-addon-remove-mutation.ts b/apps/studio/data/subscriptions/project-addon-remove-mutation.ts
index 5c0bcf06b87..0b8b5261359 100644
--- a/apps/studio/data/subscriptions/project-addon-remove-mutation.ts
+++ b/apps/studio/data/subscriptions/project-addon-remove-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { del } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { subscriptionKeys } from './keys'
-import { AddonVariantId } from './types'
+import type { AddonVariantId } from './types'
export type ProjectAddonRemoveVariables = {
projectRef: string
diff --git a/apps/studio/data/subscriptions/project-addon-update-mutation.ts b/apps/studio/data/subscriptions/project-addon-update-mutation.ts
index 010dada62a9..73638b12763 100644
--- a/apps/studio/data/subscriptions/project-addon-update-mutation.ts
+++ b/apps/studio/data/subscriptions/project-addon-update-mutation.ts
@@ -2,9 +2,9 @@ import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react
import { toast } from 'react-hot-toast'
import { post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { subscriptionKeys } from './keys'
-import { AddonVariantId, ProjectAddonType } from './types'
+import type { AddonVariantId, ProjectAddonType } from './types'
export type ProjectAddonUpdateVariables = {
projectRef: string
diff --git a/apps/studio/data/subscriptions/project-addons-query.ts b/apps/studio/data/subscriptions/project-addons-query.ts
index f81ee6df3c9..eb037de72b0 100644
--- a/apps/studio/data/subscriptions/project-addons-query.ts
+++ b/apps/studio/data/subscriptions/project-addons-query.ts
@@ -1,7 +1,7 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { subscriptionKeys } from './keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProjectAddonsVariables = {
projectRef?: string
diff --git a/apps/studio/data/subscriptions/types.ts b/apps/studio/data/subscriptions/types.ts
index e4ec4475247..a47351d1549 100644
--- a/apps/studio/data/subscriptions/types.ts
+++ b/apps/studio/data/subscriptions/types.ts
@@ -1,4 +1,4 @@
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type SubscriptionTier =
| 'tier_free'
diff --git a/apps/studio/data/table-rows/table-row-create-mutation.ts b/apps/studio/data/table-rows/table-row-create-mutation.ts
index 1a3cc009716..2a136b0dad2 100644
--- a/apps/studio/data/table-rows/table-row-create-mutation.ts
+++ b/apps/studio/data/table-rows/table-row-create-mutation.ts
@@ -5,7 +5,7 @@ import { Query, SupaTable } from 'components/grid'
import { sqlKeys } from 'data/sql/keys'
import { ImpersonationRole, wrapWithRoleImpersonation } from 'lib/role-impersonation'
import { isRoleImpersonationEnabled } from 'state/role-impersonation-state'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { executeSql } from 'data/sql/execute-sql-query'
export type TableRowCreateVariables = {
diff --git a/apps/studio/data/table-rows/table-row-delete-all-mutation.ts b/apps/studio/data/table-rows/table-row-delete-all-mutation.ts
index a35d7937240..c63c992d4cf 100644
--- a/apps/studio/data/table-rows/table-row-delete-all-mutation.ts
+++ b/apps/studio/data/table-rows/table-row-delete-all-mutation.ts
@@ -6,7 +6,7 @@ import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
import { ImpersonationRole, wrapWithRoleImpersonation } from 'lib/role-impersonation'
import { isRoleImpersonationEnabled } from 'state/role-impersonation-state'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { formatFilterValue } from './utils'
export type TableRowDeleteAllVariables = {
diff --git a/apps/studio/data/table-rows/table-row-delete-mutation.ts b/apps/studio/data/table-rows/table-row-delete-mutation.ts
index 1cbff02d640..9ebd685c439 100644
--- a/apps/studio/data/table-rows/table-row-delete-mutation.ts
+++ b/apps/studio/data/table-rows/table-row-delete-mutation.ts
@@ -4,10 +4,10 @@ import { toast } from 'react-hot-toast'
import { Query, SupaRow } from 'components/grid'
import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
-import { Table } from 'data/tables/table-query'
+import type { Table } from 'data/tables/table-query'
import { ImpersonationRole, wrapWithRoleImpersonation } from 'lib/role-impersonation'
import { isRoleImpersonationEnabled } from 'state/role-impersonation-state'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { getPrimaryKeys } from './utils'
export type TableRowDeleteVariables = {
diff --git a/apps/studio/data/table-rows/table-row-truncate-mutation.ts b/apps/studio/data/table-rows/table-row-truncate-mutation.ts
index c14b8aa25c8..44688fc0ace 100644
--- a/apps/studio/data/table-rows/table-row-truncate-mutation.ts
+++ b/apps/studio/data/table-rows/table-row-truncate-mutation.ts
@@ -4,7 +4,7 @@ import { toast } from 'react-hot-toast'
import { Query, SupaTable } from 'components/grid'
import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type TableRowTruncateVariables = {
projectRef: string
diff --git a/apps/studio/data/table-rows/table-row-update-mutation.ts b/apps/studio/data/table-rows/table-row-update-mutation.ts
index e11e1095458..b00b202d9ed 100644
--- a/apps/studio/data/table-rows/table-row-update-mutation.ts
+++ b/apps/studio/data/table-rows/table-row-update-mutation.ts
@@ -6,7 +6,7 @@ import { executeSql } from 'data/sql/execute-sql-query'
import { sqlKeys } from 'data/sql/keys'
import { ImpersonationRole, wrapWithRoleImpersonation } from 'lib/role-impersonation'
import { isRoleImpersonationEnabled } from 'state/role-impersonation-state'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type TableRowUpdateVariables = {
projectRef: string
diff --git a/apps/studio/data/table-rows/table-rows-count-query.ts b/apps/studio/data/table-rows/table-rows-count-query.ts
index 9f2446d88f3..8f5c3e271e1 100644
--- a/apps/studio/data/table-rows/table-rows-count-query.ts
+++ b/apps/studio/data/table-rows/table-rows-count-query.ts
@@ -1,4 +1,4 @@
-import { QueryKey, UseQueryOptions } from '@tanstack/react-query'
+import type { QueryKey, UseQueryOptions } from '@tanstack/react-query'
import { Filter, Query, SupaTable } from 'components/grid'
import { ImpersonationRole, wrapWithRoleImpersonation } from 'lib/role-impersonation'
diff --git a/apps/studio/data/table-rows/table-rows-query.ts b/apps/studio/data/table-rows/table-rows-query.ts
index 1f6bd4df728..879d4c8d37e 100644
--- a/apps/studio/data/table-rows/table-rows-query.ts
+++ b/apps/studio/data/table-rows/table-rows-query.ts
@@ -1,4 +1,4 @@
-import { QueryKey, UseQueryOptions } from '@tanstack/react-query'
+import type { QueryKey, UseQueryOptions } from '@tanstack/react-query'
import { IS_PLATFORM } from 'common'
import { Filter, Query, Sort, SupaRow, SupaTable } from 'components/grid'
diff --git a/apps/studio/data/table-rows/utils.ts b/apps/studio/data/table-rows/utils.ts
index 55c6c305b07..b5796abed1b 100644
--- a/apps/studio/data/table-rows/utils.ts
+++ b/apps/studio/data/table-rows/utils.ts
@@ -1,7 +1,7 @@
-import { Filter, ServiceError, SupaTable } from 'components/grid'
+import type { Filter, ServiceError, SupaTable } from 'components/grid'
import { ERROR_PRIMARY_KEY_NOTFOUND } from 'components/grid/constants'
import { isNumericalColumn } from 'components/grid/utils'
-import { Table } from 'data/tables/table-query'
+import type { Table } from 'data/tables/table-query'
/**
* temporary fix until we implement a better filter UI
diff --git a/apps/studio/data/tables/table-create-mutation.ts b/apps/studio/data/tables/table-create-mutation.ts
index fc1975ed6d1..ad99da6c144 100644
--- a/apps/studio/data/tables/table-create-mutation.ts
+++ b/apps/studio/data/tables/table-create-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { handleError, post } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { tableKeys } from './keys'
export type CreateTableBody = components['schemas']['CreateTableBody']
diff --git a/apps/studio/data/tables/table-delete-mutation.ts b/apps/studio/data/tables/table-delete-mutation.ts
index cd8d7be5dce..1f445aca64d 100644
--- a/apps/studio/data/tables/table-delete-mutation.ts
+++ b/apps/studio/data/tables/table-delete-mutation.ts
@@ -4,7 +4,7 @@ import { toast } from 'react-hot-toast'
import { entityTypeKeys } from 'data/entity-types/keys'
import { del, handleError } from 'data/fetchers'
import { viewKeys } from 'data/views/keys'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { tableKeys } from './keys'
export type TableDeleteVariables = {
diff --git a/apps/studio/data/tables/table-query.ts b/apps/studio/data/tables/table-query.ts
index 2bec6eb5a18..ae9b159e9f3 100644
--- a/apps/studio/data/tables/table-query.ts
+++ b/apps/studio/data/tables/table-query.ts
@@ -1,4 +1,4 @@
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
// import { get } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
diff --git a/apps/studio/data/tables/table-update-mutation.ts b/apps/studio/data/tables/table-update-mutation.ts
index 274b91c035e..76db54f9a98 100644
--- a/apps/studio/data/tables/table-update-mutation.ts
+++ b/apps/studio/data/tables/table-update-mutation.ts
@@ -1,9 +1,9 @@
import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'
import { toast } from 'react-hot-toast'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { handleError, patch } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { tableKeys } from './keys'
export type UpdateTableBody = components['schemas']['UpdateTableBody']
diff --git a/apps/studio/data/tables/tables-query.ts b/apps/studio/data/tables/tables-query.ts
index 14472190c21..8e1ebf85199 100644
--- a/apps/studio/data/tables/tables-query.ts
+++ b/apps/studio/data/tables/tables-query.ts
@@ -1,10 +1,10 @@
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { useQuery, useQueryClient, UseQueryOptions } from '@tanstack/react-query'
import { sortBy } from 'lodash'
import { useCallback } from 'react'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { tableKeys } from './keys'
export type TablesVariables = {
diff --git a/apps/studio/data/usage/org-usage-query.ts b/apps/studio/data/usage/org-usage-query.ts
index 4bc23315c7a..d7a2216c325 100644
--- a/apps/studio/data/usage/org-usage-query.ts
+++ b/apps/studio/data/usage/org-usage-query.ts
@@ -1,8 +1,8 @@
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { usageKeys } from './keys'
-import { ResponseError } from 'types'
-import { components } from 'data/api'
+import type { ResponseError } from 'types'
+import type { components } from 'data/api'
export type OrgUsageVariables = {
orgSlug?: string
diff --git a/apps/studio/data/usage/resource-warnings-query.ts b/apps/studio/data/usage/resource-warnings-query.ts
index 7a1c588f52f..78817a1f3af 100644
--- a/apps/studio/data/usage/resource-warnings-query.ts
+++ b/apps/studio/data/usage/resource-warnings-query.ts
@@ -2,8 +2,8 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get } from 'data/fetchers'
import { usageKeys } from './keys'
-import { ResponseError } from 'types'
-import { components } from 'data/api'
+import type { ResponseError } from 'types'
+import type { components } from 'data/api'
import { IS_PLATFORM } from 'common'
export async function getResourceWarnings(signal?: AbortSignal) {
diff --git a/apps/studio/data/vault/vault-secret-create-mutation.ts b/apps/studio/data/vault/vault-secret-create-mutation.ts
index 147a96cc03e..67798e557c2 100644
--- a/apps/studio/data/vault/vault-secret-create-mutation.ts
+++ b/apps/studio/data/vault/vault-secret-create-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { Query } from 'components/grid/query/Query'
import { executeSql } from 'data/sql/execute-sql-query'
-import { ResponseError, VaultSecret } from 'types'
+import type { ResponseError, VaultSecret } from 'types'
import { vaultSecretsKeys } from './keys'
import { sqlKeys } from 'data/sql/keys'
diff --git a/apps/studio/data/vault/vault-secret-delete-mutation.ts b/apps/studio/data/vault/vault-secret-delete-mutation.ts
index 0bed4e196bf..0532ef5ab3b 100644
--- a/apps/studio/data/vault/vault-secret-delete-mutation.ts
+++ b/apps/studio/data/vault/vault-secret-delete-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { Query } from 'components/grid/query/Query'
import { executeSql } from 'data/sql/execute-sql-query'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { vaultSecretsKeys } from './keys'
import { sqlKeys } from 'data/sql/keys'
diff --git a/apps/studio/data/vault/vault-secret-update-mutation.ts b/apps/studio/data/vault/vault-secret-update-mutation.ts
index 96a00180814..c8ba8fcf1ad 100644
--- a/apps/studio/data/vault/vault-secret-update-mutation.ts
+++ b/apps/studio/data/vault/vault-secret-update-mutation.ts
@@ -3,7 +3,7 @@ import toast from 'react-hot-toast'
import { Query } from 'components/grid/query/Query'
import { executeSql } from 'data/sql/execute-sql-query'
-import { ResponseError, VaultSecret } from 'types'
+import type { ResponseError, VaultSecret } from 'types'
import { vaultSecretsKeys } from './keys'
import { sqlKeys } from 'data/sql/keys'
diff --git a/apps/studio/data/vault/vault-secrets-query.ts b/apps/studio/data/vault/vault-secrets-query.ts
index cb3621aa5c2..8ac2377ee97 100644
--- a/apps/studio/data/vault/vault-secrets-query.ts
+++ b/apps/studio/data/vault/vault-secrets-query.ts
@@ -1,6 +1,6 @@
import { UseQueryOptions } from '@tanstack/react-query'
import { Query } from 'components/grid/query/Query'
-import { VaultSecret } from 'types'
+import type { VaultSecret } from 'types'
import { ExecuteSqlData, useExecuteSqlQuery } from '../sql/execute-sql-query'
import { vaultSecretsKeys } from './keys'
diff --git a/apps/studio/data/views/view-query.ts b/apps/studio/data/views/view-query.ts
index 5a7b365f317..ae6d11b6c2d 100644
--- a/apps/studio/data/views/view-query.ts
+++ b/apps/studio/data/views/view-query.ts
@@ -1,8 +1,8 @@
-import { PostgresView } from '@supabase/postgres-meta'
+import type { PostgresView } from '@supabase/postgres-meta'
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { viewKeys } from './keys'
export type ViewVariables = {
diff --git a/apps/studio/data/views/views-query.ts b/apps/studio/data/views/views-query.ts
index 12767524c84..b5c884f06f0 100644
--- a/apps/studio/data/views/views-query.ts
+++ b/apps/studio/data/views/views-query.ts
@@ -2,7 +2,7 @@ import { UseQueryOptions, useQuery, useQueryClient } from '@tanstack/react-query
import { useCallback } from 'react'
import { get, handleError } from 'data/fetchers'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
import { viewKeys } from './keys'
export type ViewsVariables = {
diff --git a/apps/studio/hooks/analytics/useLogsQuery.tsx b/apps/studio/hooks/analytics/useLogsQuery.tsx
index e0b0516d27c..2460f8d2c2e 100644
--- a/apps/studio/hooks/analytics/useLogsQuery.tsx
+++ b/apps/studio/hooks/analytics/useLogsQuery.tsx
@@ -5,7 +5,11 @@ import {
getDefaultHelper,
} from 'components/interfaces/Settings/Logs'
import { Dispatch, SetStateAction, useState } from 'react'
-import { LogsEndpointParams, Logs, LogData } from 'components/interfaces/Settings/Logs/Logs.types'
+import type {
+ LogsEndpointParams,
+ Logs,
+ LogData,
+} from 'components/interfaces/Settings/Logs/Logs.types'
import { API_URL } from 'lib/constants'
import { get, isResponseOk } from 'lib/common/fetch'
export interface LogsQueryHook {
diff --git a/apps/studio/hooks/misc/useCheckPermissions.ts b/apps/studio/hooks/misc/useCheckPermissions.ts
index c8b7d4fb640..b88983594e0 100644
--- a/apps/studio/hooks/misc/useCheckPermissions.ts
+++ b/apps/studio/hooks/misc/useCheckPermissions.ts
@@ -4,7 +4,7 @@ import jsonLogic from 'json-logic-js'
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { IS_PLATFORM } from 'lib/constants'
-import { Permission } from 'types'
+import type { Permission } from 'types'
import { useSelectedOrganization } from './useSelectedOrganization'
const toRegexpString = (actionOrResource: string) =>
diff --git a/apps/studio/hooks/misc/useEntityType.ts b/apps/studio/hooks/misc/useEntityType.ts
index 52211c72833..336b83fb5df 100644
--- a/apps/studio/hooks/misc/useEntityType.ts
+++ b/apps/studio/hooks/misc/useEntityType.ts
@@ -1,6 +1,6 @@
import { useQueryClient } from '@tanstack/react-query'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
-import { Entity, useEntityTypeQuery } from 'data/entity-types/entity-type-query'
+import { type Entity, useEntityTypeQuery } from 'data/entity-types/entity-type-query'
import { entityTypeKeys } from 'data/entity-types/keys'
import { useMemo } from 'react'
diff --git a/apps/studio/hooks/misc/useIsFeatureEnabled.ts b/apps/studio/hooks/misc/useIsFeatureEnabled.ts
index e3117e901ef..2542fb5ddb3 100644
--- a/apps/studio/hooks/misc/useIsFeatureEnabled.ts
+++ b/apps/studio/hooks/misc/useIsFeatureEnabled.ts
@@ -1,4 +1,4 @@
-import { Feature } from 'data/profile/types'
+import type { Feature } from 'data/profile/types'
import { useProfile } from 'lib/profile'
function checkFeature(feature: Feature, features?: Feature[]) {
diff --git a/apps/studio/hooks/misc/useStore.tsx b/apps/studio/hooks/misc/useStore.tsx
index be8ae8c5048..0f5b229a303 100644
--- a/apps/studio/hooks/misc/useStore.tsx
+++ b/apps/studio/hooks/misc/useStore.tsx
@@ -3,7 +3,7 @@ import { createContext, PropsWithChildren, useContext, useEffect } from 'react'
import toast from 'react-hot-toast'
import SparkBar from 'components/ui/SparkBar'
-import { IRootStore } from 'stores'
+import type { IRootStore } from 'stores'
import { useSelectedProject } from './useSelectedProject'
const StoreContext = createContext<IRootStore>(undefined!)
diff --git a/apps/studio/lib/api/apiAuthenticate.ts b/apps/studio/lib/api/apiAuthenticate.ts
index d7d85dcee84..f121dfa050a 100644
--- a/apps/studio/lib/api/apiAuthenticate.ts
+++ b/apps/studio/lib/api/apiAuthenticate.ts
@@ -1,6 +1,6 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import { readOnly } from './supabaseClient'
-import { SupaResponse, User } from 'types'
+import type { SupaResponse, User } from 'types'
import { getAuth0Id, getAuthUser, getIdentity } from 'lib/gotrue'
/**
diff --git a/apps/studio/lib/api/apiWrapper.ts b/apps/studio/lib/api/apiWrapper.ts
index 4b9008a09c3..a0deb511610 100644
--- a/apps/studio/lib/api/apiWrapper.ts
+++ b/apps/studio/lib/api/apiWrapper.ts
@@ -1,6 +1,6 @@
import { withSentry } from '@sentry/nextjs'
import { isResponseOk } from 'lib/common/fetch'
-import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next'
+import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next'
import { IS_PLATFORM } from '../constants'
import { apiAuthenticate } from './apiAuthenticate'
diff --git a/apps/studio/lib/common/fetch/base.ts b/apps/studio/lib/common/fetch/base.ts
index c7140a3820d..38f4eda7dcd 100644
--- a/apps/studio/lib/common/fetch/base.ts
+++ b/apps/studio/lib/common/fetch/base.ts
@@ -1,6 +1,6 @@
import { getAccessToken } from 'lib/gotrue'
import { isUndefined } from 'lodash'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
export function handleError<T>(e: any, requestId: string): SupaResponse<T> {
const message = e?.message ? `An error has occurred: ${e.message}` : 'An error has occurred'
diff --git a/apps/studio/lib/common/fetch/delete.ts b/apps/studio/lib/common/fetch/delete.ts
index 6a68c4b001b..b8da5a117dc 100644
--- a/apps/studio/lib/common/fetch/delete.ts
+++ b/apps/studio/lib/common/fetch/delete.ts
@@ -1,6 +1,6 @@
import { handleError, handleResponse, handleResponseError, constructHeaders } from './base'
import { uuidv4 } from '../../helpers'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
/**
* @deprecated please use del method from data/fetchers instead
diff --git a/apps/studio/lib/common/fetch/get.ts b/apps/studio/lib/common/fetch/get.ts
index 5c3c895a58f..941c5eb4b58 100644
--- a/apps/studio/lib/common/fetch/get.ts
+++ b/apps/studio/lib/common/fetch/get.ts
@@ -1,6 +1,6 @@
import { handleError, handleResponse, handleResponseError, constructHeaders } from './base'
import { uuidv4 } from '../../helpers'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
/**
* @deprecated please use get method from data/fetchers instead
diff --git a/apps/studio/lib/common/fetch/head.ts b/apps/studio/lib/common/fetch/head.ts
index dcdb88e864c..97d3e514c62 100644
--- a/apps/studio/lib/common/fetch/head.ts
+++ b/apps/studio/lib/common/fetch/head.ts
@@ -1,6 +1,6 @@
import { handleError, handleHeadResponse, handleResponseError, constructHeaders } from './base'
import { uuidv4 } from '../../helpers'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
/**
* @deprecated please use head method from data/fetchers instead
diff --git a/apps/studio/lib/common/fetch/patch.ts b/apps/studio/lib/common/fetch/patch.ts
index f99f3ca8ef0..f8b3bb47d4a 100644
--- a/apps/studio/lib/common/fetch/patch.ts
+++ b/apps/studio/lib/common/fetch/patch.ts
@@ -1,6 +1,6 @@
import { constructHeaders, handleError, handleResponse, handleResponseError } from './base'
import { uuidv4 } from '../../helpers'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
/**
* @deprecated please use patch method from data/fetchers instead
diff --git a/apps/studio/lib/common/fetch/post.ts b/apps/studio/lib/common/fetch/post.ts
index 2f398b470c4..32e717e54a7 100644
--- a/apps/studio/lib/common/fetch/post.ts
+++ b/apps/studio/lib/common/fetch/post.ts
@@ -1,6 +1,6 @@
import { handleError, handleResponse, handleResponseError, constructHeaders } from './base'
import { uuidv4 } from 'lib/helpers'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
/**
* @deprecated please use post method from data/fetchers instead
diff --git a/apps/studio/lib/common/fetch/put.ts b/apps/studio/lib/common/fetch/put.ts
index 1eec77c933f..a2439e23d87 100644
--- a/apps/studio/lib/common/fetch/put.ts
+++ b/apps/studio/lib/common/fetch/put.ts
@@ -1,6 +1,6 @@
import { constructHeaders, handleError, handleResponse, handleResponseError } from './base'
import { uuidv4 } from '../../helpers'
-import { SupaResponse } from 'types/base'
+import type { SupaResponse } from 'types/base'
/**
* @deprecated please use post method from data/fetchers instead
diff --git a/apps/studio/lib/configcat.ts b/apps/studio/lib/configcat.ts
index 6f9f4177679..048e0bda771 100644
--- a/apps/studio/lib/configcat.ts
+++ b/apps/studio/lib/configcat.ts
@@ -1,4 +1,4 @@
-import { User } from '@supabase/supabase-js'
+import type { User } from '@supabase/supabase-js'
import * as configcat from 'configcat-js'
let client: configcat.IConfigCatClient
diff --git a/apps/studio/lib/constants/infrastructure.ts b/apps/studio/lib/constants/infrastructure.ts
index a05be565680..6107a01645e 100644
--- a/apps/studio/lib/constants/infrastructure.ts
+++ b/apps/studio/lib/constants/infrastructure.ts
@@ -1,4 +1,4 @@
-import { components } from 'data/api'
+import type { components } from 'data/api'
export type CloudProvider = 'FLY' | 'AWS'
export type Region = typeof AWS_REGIONS | typeof FLY_REGIONS
diff --git a/apps/studio/lib/integration-utils.ts b/apps/studio/lib/integration-utils.ts
index b71945aa0bd..d33610e48c8 100644
--- a/apps/studio/lib/integration-utils.ts
+++ b/apps/studio/lib/integration-utils.ts
@@ -1,5 +1,5 @@
-import { Integration } from 'data/integrations/integrations.types'
-import { SupaResponse } from 'types'
+import type { Integration } from 'data/integrations/integrations.types'
+import type { SupaResponse } from 'types'
import { isResponseOk } from './common/fetch'
async function fetchGitHub<T = any>(url: string, responseJson = true): Promise<SupaResponse<T>> {
diff --git a/apps/studio/lib/profile.tsx b/apps/studio/lib/profile.tsx
index 41203d29913..2e779f1b815 100644
--- a/apps/studio/lib/profile.tsx
+++ b/apps/studio/lib/profile.tsx
@@ -5,10 +5,10 @@ import { useIsLoggedIn, useTelemetryProps } from 'common'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useProfileCreateMutation } from 'data/profile/profile-create-mutation'
import { useProfileQuery } from 'data/profile/profile-query'
-import { Profile } from 'data/profile/types'
+import type { Profile } from 'data/profile/types'
import { useStore } from 'hooks'
import Telemetry from 'lib/telemetry'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
export type ProfileContextType = {
profile: Profile | undefined
diff --git a/apps/studio/lib/role-impersonation.ts b/apps/studio/lib/role-impersonation.ts
index 634045fc9ec..4901119789a 100644
--- a/apps/studio/lib/role-impersonation.ts
+++ b/apps/studio/lib/role-impersonation.ts
@@ -1,4 +1,4 @@
-import { User } from 'data/auth/users-query'
+import type { User } from 'data/auth/users-query'
import { uuidv4 } from './helpers'
type PostgrestImpersonationRole =
diff --git a/apps/studio/lib/telemetry.ts b/apps/studio/lib/telemetry.ts
index 00fa755e193..08496f8ee66 100644
--- a/apps/studio/lib/telemetry.ts
+++ b/apps/studio/lib/telemetry.ts
@@ -1,7 +1,7 @@
import { post } from 'lib/common/fetch'
import { API_URL, IS_PLATFORM, LOCAL_STORAGE_KEYS } from 'lib/constants'
-import { NextRouter } from 'next/router'
-import { User } from 'types'
+import type { NextRouter } from 'next/router'
+import type { User } from 'types'
export interface TelemetryProps {
screenResolution?: string
diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsx
index 42a3b45a640..1889589c012 100644
--- a/apps/studio/pages/_app.tsx
+++ b/apps/studio/pages/_app.tsx
@@ -54,7 +54,7 @@ import { ProfileProvider } from 'lib/profile'
import { useAppStateSnapshot } from 'state/app-state'
import { RootStore } from 'stores'
import HCaptchaLoadedStore from 'stores/hcaptcha-loaded-store'
-import { AppPropsWithLayout } from 'types'
+import type { AppPropsWithLayout } from 'types'
import { Toaster } from 'ui'
import { FeaturePreviewContextProvider } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'
import FeaturePreviewModal from 'components/interfaces/App/FeaturePreview/FeaturePreviewModal'
diff --git a/apps/studio/pages/account/audit.tsx b/apps/studio/pages/account/audit.tsx
index 1e6398b63d4..11125b8b49a 100644
--- a/apps/studio/pages/account/audit.tsx
+++ b/apps/studio/pages/account/audit.tsx
@@ -2,7 +2,7 @@ import { AuditLogs } from 'components/interfaces/Account'
import { AccountLayout } from 'components/layouts'
import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'
import { FormHeader } from 'components/ui/Forms'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const User: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/account/me.tsx b/apps/studio/pages/account/me.tsx
index ae09829457f..e109f0b743f 100644
--- a/apps/studio/pages/account/me.tsx
+++ b/apps/studio/pages/account/me.tsx
@@ -13,7 +13,7 @@ import Panel from 'components/ui/Panel'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useFlag, useIsFeatureEnabled } from 'hooks'
import { useProfile } from 'lib/profile'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const User: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/account/security.tsx b/apps/studio/pages/account/security.tsx
index 37855cffc83..4ca6e0ae9e4 100644
--- a/apps/studio/pages/account/security.tsx
+++ b/apps/studio/pages/account/security.tsx
@@ -1,4 +1,4 @@
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { Badge, cn, Collapsible, IconSmartphone } from 'ui'
import { TOTPFactors } from 'components/interfaces/Account'
diff --git a/apps/studio/pages/account/tokens.tsx b/apps/studio/pages/account/tokens.tsx
index 51a767a0d18..da86f7daf8b 100644
--- a/apps/studio/pages/account/tokens.tsx
+++ b/apps/studio/pages/account/tokens.tsx
@@ -1,5 +1,5 @@
import { useState } from 'react'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { FormHeader } from 'components/ui/Forms'
import { AccountLayout } from 'components/layouts'
import {
diff --git a/apps/studio/pages/api/projects/[ref]/content.ts b/apps/studio/pages/api/projects/[ref]/content.ts
index 6345476fa57..2fb7bd01c41 100644
--- a/apps/studio/pages/api/projects/[ref]/content.ts
+++ b/apps/studio/pages/api/projects/[ref]/content.ts
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from 'next'
import apiWrapper from 'lib/api/apiWrapper'
-import { UserContent } from 'types'
+import type { UserContent } from 'types'
export default (req: NextApiRequest, res: NextApiResponse) => apiWrapper(req, res, handler)
diff --git a/apps/studio/pages/authorize.tsx b/apps/studio/pages/authorize.tsx
index 6183ac81c1d..b9181d5afeb 100644
--- a/apps/studio/pages/authorize.tsx
+++ b/apps/studio/pages/authorize.tsx
@@ -12,7 +12,7 @@ import { useApiAuthorizationDeclineMutation } from 'data/api-authorization/api-a
import { useApiAuthorizationQuery } from 'data/api-authorization/api-authorization-query'
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { useStore, withAuth } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { Alert, Button, Listbox } from 'ui'
// Need to handle if no organizations in account
diff --git a/apps/studio/pages/forgot-password.tsx b/apps/studio/pages/forgot-password.tsx
index 4efe3077133..44b43b46cc6 100644
--- a/apps/studio/pages/forgot-password.tsx
+++ b/apps/studio/pages/forgot-password.tsx
@@ -1,7 +1,7 @@
import ForgotPasswordForm from 'components/interfaces/SignIn/ForgotPasswordForm'
import { ForgotPasswordLayout } from 'components/layouts'
import Link from 'next/link'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ForgotPasswordPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
index 0cabcedb04f..0b5e5ebd7cf 100644
--- a/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
+++ b/apps/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx
@@ -20,7 +20,7 @@ import { AWS_REGIONS, DEFAULT_MINIMUM_PASSWORD_STRENGTH, PROVIDERS } from 'lib/c
import { passwordStrength } from 'lib/helpers'
import { getInitialMigrationSQLFromGitHubRepo } from 'lib/integration-utils'
import { useIntegrationInstallationSnapshot } from 'state/integration-installation'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { Alert, Button, Checkbox, Input, Listbox } from 'ui'
const VercelIntegration: NextPageWithLayout = () => {
diff --git a/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx b/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx
index 420a6610d3f..42ca0935117 100644
--- a/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx
+++ b/apps/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx
@@ -18,7 +18,7 @@ import { useProjectsQuery } from 'data/projects/projects-query'
import { BASE_PATH, PROJECT_STATUS } from 'lib/constants'
import { EMPTY_ARR } from 'lib/void'
import { useIntegrationInstallationSnapshot } from 'state/integration-installation'
-import { NextPageWithLayout, Organization } from 'types'
+import type { NextPageWithLayout, Organization } from 'types'
const VERCEL_ICON = (
<img src={`${BASE_PATH}/img/icons/vercel-icon.svg`} alt="Vercel Icon" className="w-4" />
diff --git a/apps/studio/pages/integrations/vercel/install.tsx b/apps/studio/pages/integrations/vercel/install.tsx
index f2c707c4117..1318c60ec4d 100644
--- a/apps/studio/pages/integrations/vercel/install.tsx
+++ b/apps/studio/pages/integrations/vercel/install.tsx
@@ -13,7 +13,7 @@ import { useVercelIntegrationCreateMutation } from 'data/integrations/vercel-int
import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { useStore } from 'hooks'
import Link from 'next/link'
-import { NextPageWithLayout, Organization } from 'types'
+import type { NextPageWithLayout, Organization } from 'types'
import {
AlertDescription_Shadcn_,
AlertTitle_Shadcn_,
diff --git a/apps/studio/pages/new/[slug].tsx b/apps/studio/pages/new/[slug].tsx
index 0fdc1557886..9325a1c8c81 100644
--- a/apps/studio/pages/new/[slug].tsx
+++ b/apps/studio/pages/new/[slug].tsx
@@ -33,9 +33,9 @@ import {
Region,
} from 'lib/constants'
import { passwordStrength, pluckObjectFields } from 'lib/helpers'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { Badge, Button, IconExternalLink, IconUsers, Input, Listbox } from 'ui'
-import { components } from 'data/api'
+import type { components } from 'data/api'
import { WizardLayoutWithoutAuth } from 'components/layouts/WizardLayout'
type DesiredInstanceSize = components['schemas']['DesiredInstanceSize']
diff --git a/apps/studio/pages/new/index.tsx b/apps/studio/pages/new/index.tsx
index 5319effb991..95fbc992686 100644
--- a/apps/studio/pages/new/index.tsx
+++ b/apps/studio/pages/new/index.tsx
@@ -10,7 +10,7 @@ import { WizardLayout } from 'components/layouts'
import { useSetupIntent } from 'data/stripe/setup-intent-mutation'
import { STRIPE_PUBLIC_KEY } from 'lib/constants'
import { useIsHCaptchaLoaded } from 'stores/hcaptcha-loaded-store'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const stripePromise = loadStripe(STRIPE_PUBLIC_KEY)
diff --git a/apps/studio/pages/org/[slug]/apps.tsx b/apps/studio/pages/org/[slug]/apps.tsx
index b55b3ebd927..8d1d248ce4b 100644
--- a/apps/studio/pages/org/[slug]/apps.tsx
+++ b/apps/studio/pages/org/[slug]/apps.tsx
@@ -3,7 +3,7 @@ import { OrganizationLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgOAuthApps: NextPageWithLayout = () => {
const selectedOrganization = useSelectedOrganization()
diff --git a/apps/studio/pages/org/[slug]/audit.tsx b/apps/studio/pages/org/[slug]/audit.tsx
index e8ae6ef1e4c..94dd76ac24a 100644
--- a/apps/studio/pages/org/[slug]/audit.tsx
+++ b/apps/studio/pages/org/[slug]/audit.tsx
@@ -3,7 +3,7 @@ import { OrganizationLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgAuditLogs: NextPageWithLayout = () => {
const { isLoading: isLoadingPermissions } = usePermissionsQuery()
diff --git a/apps/studio/pages/org/[slug]/billing.tsx b/apps/studio/pages/org/[slug]/billing.tsx
index 4555aac2a9d..f973ac75108 100644
--- a/apps/studio/pages/org/[slug]/billing.tsx
+++ b/apps/studio/pages/org/[slug]/billing.tsx
@@ -9,7 +9,7 @@ import {
ORG_SETTINGS_PANEL_KEYS,
useOrgSettingsPageStateSnapshot,
} from 'state/organization-settings'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgBillingSettings: NextPageWithLayout = () => {
const { panel } = useParams()
diff --git a/apps/studio/pages/org/[slug]/documents.tsx b/apps/studio/pages/org/[slug]/documents.tsx
index d890fc06c6d..b92bdbe9f2c 100644
--- a/apps/studio/pages/org/[slug]/documents.tsx
+++ b/apps/studio/pages/org/[slug]/documents.tsx
@@ -1,4 +1,4 @@
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { OrganizationLayout } from 'components/layouts'
import { Documents } from 'components/interfaces/Organization'
diff --git a/apps/studio/pages/org/[slug]/general.tsx b/apps/studio/pages/org/[slug]/general.tsx
index 9e1803d79b9..4eb742b05ac 100644
--- a/apps/studio/pages/org/[slug]/general.tsx
+++ b/apps/studio/pages/org/[slug]/general.tsx
@@ -3,7 +3,7 @@ import { OrganizationLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgGeneralSettings: NextPageWithLayout = () => {
const { isLoading: isLoadingPermissions } = usePermissionsQuery()
diff --git a/apps/studio/pages/org/[slug]/index.tsx b/apps/studio/pages/org/[slug]/index.tsx
index f52f3bcc022..060d94ab9e9 100644
--- a/apps/studio/pages/org/[slug]/index.tsx
+++ b/apps/studio/pages/org/[slug]/index.tsx
@@ -11,7 +11,7 @@ import { useGitHubConnectionsQuery } from 'data/integrations/github-connections-
import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'
import { useProjectsQuery } from 'data/projects/projects-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ProjectsPage: NextPageWithLayout = () => {
const {
diff --git a/apps/studio/pages/org/[slug]/integrations.tsx b/apps/studio/pages/org/[slug]/integrations.tsx
index 0e54ef2778c..87fdf96add2 100644
--- a/apps/studio/pages/org/[slug]/integrations.tsx
+++ b/apps/studio/pages/org/[slug]/integrations.tsx
@@ -1,4 +1,4 @@
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { OrganizationLayout } from 'components/layouts'
import { IntegrationSettings } from 'components/interfaces/Organization'
diff --git a/apps/studio/pages/org/[slug]/invoices.tsx b/apps/studio/pages/org/[slug]/invoices.tsx
index 7d9f643546f..a532196b72e 100644
--- a/apps/studio/pages/org/[slug]/invoices.tsx
+++ b/apps/studio/pages/org/[slug]/invoices.tsx
@@ -3,7 +3,7 @@ import { OrganizationLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgInvoices: NextPageWithLayout = () => {
const { isLoading: isLoadingPermissions } = usePermissionsQuery()
diff --git a/apps/studio/pages/org/[slug]/team.tsx b/apps/studio/pages/org/[slug]/team.tsx
index de36efe5d32..4c46eec6c11 100644
--- a/apps/studio/pages/org/[slug]/team.tsx
+++ b/apps/studio/pages/org/[slug]/team.tsx
@@ -3,7 +3,7 @@ import { OrganizationLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgTeamSettings: NextPageWithLayout = () => {
const { isLoading: isLoadingPermissions } = usePermissionsQuery()
diff --git a/apps/studio/pages/org/[slug]/usage.tsx b/apps/studio/pages/org/[slug]/usage.tsx
index 67585db31f9..484ed40d286 100644
--- a/apps/studio/pages/org/[slug]/usage.tsx
+++ b/apps/studio/pages/org/[slug]/usage.tsx
@@ -3,7 +3,7 @@ import { OrganizationLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { usePermissionsQuery } from 'data/permissions/permissions-query'
import { useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgUsage: NextPageWithLayout = () => {
const { isLoading: isLoadingPermissions } = usePermissionsQuery()
diff --git a/apps/studio/pages/project/[ref]/api/graphiql.tsx b/apps/studio/pages/project/[ref]/api/graphiql.tsx
index c5f19532f03..e8e8598cd2b 100644
--- a/apps/studio/pages/project/[ref]/api/graphiql.tsx
+++ b/apps/studio/pages/project/[ref]/api/graphiql.tsx
@@ -18,7 +18,7 @@ import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-ex
import { API_URL, IS_PLATFORM } from 'lib/constants'
import { getRoleImpersonationJWT } from 'lib/role-impersonation'
import { useGetImpersonatedRole } from 'state/role-impersonation-state'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const GraphiQLPage: NextPageWithLayout = () => {
const { resolvedTheme } = useTheme()
diff --git a/apps/studio/pages/project/[ref]/api/index.tsx b/apps/studio/pages/project/[ref]/api/index.tsx
index 3e83002e03d..899fa9ef981 100644
--- a/apps/studio/pages/project/[ref]/api/index.tsx
+++ b/apps/studio/pages/project/[ref]/api/index.tsx
@@ -9,7 +9,7 @@ import { DocsLayout } from 'components/layouts'
import { useProjectApiQuery } from 'data/config/project-api-query'
import { useProjectJsonSchemaQuery } from 'data/docs/project-json-schema-query'
import { snakeToCamel } from 'lib/helpers'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageContext = createContext(null)
diff --git a/apps/studio/pages/project/[ref]/auth/column-privileges.tsx b/apps/studio/pages/project/[ref]/auth/column-privileges.tsx
index 973c1e2ae63..3ca71115b86 100644
--- a/apps/studio/pages/project/[ref]/auth/column-privileges.tsx
+++ b/apps/studio/pages/project/[ref]/auth/column-privileges.tsx
@@ -1,4 +1,4 @@
-import { PostgresRole } from '@supabase/postgres-meta'
+import type { PostgresRole } from '@supabase/postgres-meta'
import { useParams } from 'common'
import { XIcon } from 'lucide-react'
import Link from 'next/link'
@@ -35,7 +35,7 @@ import { useTablesQuery } from 'data/tables/tables-query'
import { useLocalStorage } from 'hooks'
import { LOCAL_STORAGE_KEYS } from 'lib/constants'
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { useAppStateSnapshot } from 'state/app-state'
const EDITABLE_ROLES = ['authenticated', 'anon', 'service_role']
diff --git a/apps/studio/pages/project/[ref]/auth/hooks.tsx b/apps/studio/pages/project/[ref]/auth/hooks.tsx
index e6e13fd19f1..7713c734dce 100644
--- a/apps/studio/pages/project/[ref]/auth/hooks.tsx
+++ b/apps/studio/pages/project/[ref]/auth/hooks.tsx
@@ -6,7 +6,7 @@ import { AuthLayout } from 'components/layouts'
import { FormsContainer } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const Hooks: NextPageWithLayout = () => {
const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')
diff --git a/apps/studio/pages/project/[ref]/auth/index.tsx b/apps/studio/pages/project/[ref]/auth/index.tsx
index 4544e8a6cdb..b6252441731 100644
--- a/apps/studio/pages/project/[ref]/auth/index.tsx
+++ b/apps/studio/pages/project/[ref]/auth/index.tsx
@@ -1,7 +1,7 @@
import { observer } from 'mobx-react-lite'
import { AuthLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const Authentication: NextPageWithLayout = () => {
return <>{/* <h1>Use this as a template for authentication pages</h1> */}</>
diff --git a/apps/studio/pages/project/[ref]/auth/policies.tsx b/apps/studio/pages/project/[ref]/auth/policies.tsx
index f3cc4c7e0ca..86b2e177206 100644
--- a/apps/studio/pages/project/[ref]/auth/policies.tsx
+++ b/apps/studio/pages/project/[ref]/auth/policies.tsx
@@ -1,5 +1,5 @@
import * as Tooltip from '@radix-ui/react-tooltip'
-import { PostgresPolicy, PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresPolicy, PostgresTable } from '@supabase/postgres-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { partition } from 'lodash'
import { useEffect, useState } from 'react'
@@ -20,7 +20,7 @@ import { useTablesQuery } from 'data/tables/tables-query'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { Button, IconExternalLink, IconSearch, Input } from 'ui'
/**
diff --git a/apps/studio/pages/project/[ref]/auth/providers.tsx b/apps/studio/pages/project/[ref]/auth/providers.tsx
index ea9d2e25a11..93c03890799 100644
--- a/apps/studio/pages/project/[ref]/auth/providers.tsx
+++ b/apps/studio/pages/project/[ref]/auth/providers.tsx
@@ -5,7 +5,7 @@ import { AuthLayout } from 'components/layouts'
import { FormsContainer } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')
diff --git a/apps/studio/pages/project/[ref]/auth/rate-limits.tsx b/apps/studio/pages/project/[ref]/auth/rate-limits.tsx
index 2ed9bff964f..705a81047ef 100644
--- a/apps/studio/pages/project/[ref]/auth/rate-limits.tsx
+++ b/apps/studio/pages/project/[ref]/auth/rate-limits.tsx
@@ -5,7 +5,7 @@ import { AuthLayout } from 'components/layouts'
import { FormsContainer } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')
diff --git a/apps/studio/pages/project/[ref]/auth/templates.tsx b/apps/studio/pages/project/[ref]/auth/templates.tsx
index f403d698ed0..0710001fff7 100644
--- a/apps/studio/pages/project/[ref]/auth/templates.tsx
+++ b/apps/studio/pages/project/[ref]/auth/templates.tsx
@@ -5,7 +5,7 @@ import { AuthLayout } from 'components/layouts'
import { FormsContainer } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')
diff --git a/apps/studio/pages/project/[ref]/auth/url-configuration.tsx b/apps/studio/pages/project/[ref]/auth/url-configuration.tsx
index e910d8ab261..560632d38ae 100644
--- a/apps/studio/pages/project/[ref]/auth/url-configuration.tsx
+++ b/apps/studio/pages/project/[ref]/auth/url-configuration.tsx
@@ -6,7 +6,7 @@ import { AuthLayout } from 'components/layouts'
import { FormsContainer } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const URLConfiguration: NextPageWithLayout = () => {
const canReadAuthSettings = useCheckPermissions(PermissionAction.READ, 'custom_config_gotrue')
diff --git a/apps/studio/pages/project/[ref]/auth/users.tsx b/apps/studio/pages/project/[ref]/auth/users.tsx
index 1767354d942..45a315c1131 100644
--- a/apps/studio/pages/project/[ref]/auth/users.tsx
+++ b/apps/studio/pages/project/[ref]/auth/users.tsx
@@ -1,6 +1,6 @@
import { Users } from 'components/interfaces/Auth/Users'
import { AuthLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const UsersPage: NextPageWithLayout = () => {
return <Users />
diff --git a/apps/studio/pages/project/[ref]/branches.tsx b/apps/studio/pages/project/[ref]/branches.tsx
index dd2573bdab4..cd3e6b107cd 100644
--- a/apps/studio/pages/project/[ref]/branches.tsx
+++ b/apps/studio/pages/project/[ref]/branches.tsx
@@ -1,6 +1,6 @@
import BranchManagement from 'components/interfaces/BranchManagement/BranchManagement'
import { ProjectLayoutWithAuth } from 'components/layouts/ProjectLayout/ProjectLayout'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const BranchManagementPage: NextPageWithLayout = () => {
return <BranchManagement />
diff --git a/apps/studio/pages/project/[ref]/building.tsx b/apps/studio/pages/project/[ref]/building.tsx
index 88255e3d491..e1e600e0089 100644
--- a/apps/studio/pages/project/[ref]/building.tsx
+++ b/apps/studio/pages/project/[ref]/building.tsx
@@ -1,7 +1,7 @@
import { ProjectLayoutWithAuth } from 'components/layouts/ProjectLayout/ProjectLayout'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ProjectBuildingPage: NextPageWithLayout = () => {
return <RedirectToDashboard />
diff --git a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx
index 0f6f7c1036c..7e8b641d68a 100644
--- a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx
+++ b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx
@@ -10,7 +10,7 @@ import UpgradeToPro from 'components/ui/UpgradeToPro'
import { useBackupsQuery } from 'data/database/backups-query'
import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'
import { useCheckPermissions, usePermissionsLoaded, useSelectedOrganization } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav'
const DatabasePhysicalBackups: NextPageWithLayout = () => {
diff --git a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx
index 9ca82a280f6..d702ce67417 100644
--- a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx
+++ b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx
@@ -11,7 +11,7 @@ import NoPermission from 'components/ui/NoPermission'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useBackupsQuery } from 'data/database/backups-query'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { IconInfo, Tabs } from 'ui'
import DatabaseBackupsNav from 'components/interfaces/Database/Backups/DatabaseBackupsNav'
diff --git a/apps/studio/pages/project/[ref]/database/extensions.tsx b/apps/studio/pages/project/[ref]/database/extensions.tsx
index 171528d9333..c982c9dd42d 100644
--- a/apps/studio/pages/project/[ref]/database/extensions.tsx
+++ b/apps/studio/pages/project/[ref]/database/extensions.tsx
@@ -5,7 +5,7 @@ import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseExtensions: NextPageWithLayout = () => {
const canReadExtensions = useCheckPermissions(
diff --git a/apps/studio/pages/project/[ref]/database/functions.tsx b/apps/studio/pages/project/[ref]/database/functions.tsx
index 47765d795f0..bf2d66c8f28 100644
--- a/apps/studio/pages/project/[ref]/database/functions.tsx
+++ b/apps/studio/pages/project/[ref]/database/functions.tsx
@@ -7,7 +7,7 @@ import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const FunctionsPage: NextPageWithLayout = () => {
const [selectedFunction, setSelectedFunction] = useState<any>()
diff --git a/apps/studio/pages/project/[ref]/database/hooks.tsx b/apps/studio/pages/project/[ref]/database/hooks.tsx
index 1ff5a7484a9..1d54496413a 100644
--- a/apps/studio/pages/project/[ref]/database/hooks.tsx
+++ b/apps/studio/pages/project/[ref]/database/hooks.tsx
@@ -14,7 +14,7 @@ import NoPermission from 'components/ui/NoPermission'
import { useHooksEnableMutation } from 'data/database/hooks-enable-mutation'
import { useSchemasQuery } from 'data/database/schemas-query'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const HooksPage: NextPageWithLayout = () => {
const { project } = useProjectContext()
diff --git a/apps/studio/pages/project/[ref]/database/index.tsx b/apps/studio/pages/project/[ref]/database/index.tsx
index e5d224ba985..8580eef05bd 100644
--- a/apps/studio/pages/project/[ref]/database/index.tsx
+++ b/apps/studio/pages/project/[ref]/database/index.tsx
@@ -1,5 +1,5 @@
import { DatabaseLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const Database: NextPageWithLayout = () => {
return <>{/* <h1>Use this as a page template for database</h1> */}</>
diff --git a/apps/studio/pages/project/[ref]/database/indexes.tsx b/apps/studio/pages/project/[ref]/database/indexes.tsx
index 97c834a167e..72c8b34d418 100644
--- a/apps/studio/pages/project/[ref]/database/indexes.tsx
+++ b/apps/studio/pages/project/[ref]/database/indexes.tsx
@@ -1,7 +1,7 @@
import Indexes from 'components/interfaces/Database/Indexes/Indexes'
import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const IndexesPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/database/migrations.tsx b/apps/studio/pages/project/[ref]/database/migrations.tsx
index 9d7fc9bc9a0..9e8f9061dae 100644
--- a/apps/studio/pages/project/[ref]/database/migrations.tsx
+++ b/apps/studio/pages/project/[ref]/database/migrations.tsx
@@ -1,7 +1,7 @@
import Migrations from 'components/interfaces/Database/Migrations/Migrations'
import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const MigrationsPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/database/replication.tsx b/apps/studio/pages/project/[ref]/database/replication.tsx
index e6dcabcc7ee..68bb20bab86 100644
--- a/apps/studio/pages/project/[ref]/database/replication.tsx
+++ b/apps/studio/pages/project/[ref]/database/replication.tsx
@@ -8,7 +8,7 @@ import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { useDatabasePublicationsQuery } from 'data/database-publications/database-publications-query'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
// [Joshen] Technically, best that we have these as separate URLs
// makes it easier to manage state, but foresee that this page might
diff --git a/apps/studio/pages/project/[ref]/database/roles.tsx b/apps/studio/pages/project/[ref]/database/roles.tsx
index 133f57e796e..6d4f48871ad 100644
--- a/apps/studio/pages/project/[ref]/database/roles.tsx
+++ b/apps/studio/pages/project/[ref]/database/roles.tsx
@@ -1,7 +1,7 @@
import { RolesList } from 'components/interfaces/Database'
import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseRoles: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/database/schemas.tsx b/apps/studio/pages/project/[ref]/database/schemas.tsx
index 5563db13520..390eea29f1f 100644
--- a/apps/studio/pages/project/[ref]/database/schemas.tsx
+++ b/apps/studio/pages/project/[ref]/database/schemas.tsx
@@ -8,7 +8,7 @@ import AlertError from 'components/ui/AlertError'
import SchemaSelector from 'components/ui/SchemaSelector'
import { useSchemasQuery } from 'data/database/schemas-query'
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const SchemasPage: NextPageWithLayout = () => {
const { project } = useProjectContext()
diff --git a/apps/studio/pages/project/[ref]/database/tables.tsx b/apps/studio/pages/project/[ref]/database/tables.tsx
index 3401501391b..96804803cd2 100644
--- a/apps/studio/pages/project/[ref]/database/tables.tsx
+++ b/apps/studio/pages/project/[ref]/database/tables.tsx
@@ -1,15 +1,15 @@
import { useParams } from 'common'
import { useState } from 'react'
-import { PostgresTable } from '@supabase/postgres-meta'
+import type { PostgresTable } from '@supabase/postgres-meta'
import { ColumnList, TableList } from 'components/interfaces/Database'
import { SidePanelEditor } from 'components/interfaces/TableGridEditor'
import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs'
import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
-import { Table } from 'data/tables/table-query'
+import type { Table } from 'data/tables/table-query'
import { useTableEditorStateSnapshot } from 'state/table-editor'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import useTable from 'hooks/misc/useTable'
const DatabaseTables: NextPageWithLayout = () => {
diff --git a/apps/studio/pages/project/[ref]/database/triggers.tsx b/apps/studio/pages/project/[ref]/database/triggers.tsx
index dd363817016..4fd2c098dce 100644
--- a/apps/studio/pages/project/[ref]/database/triggers.tsx
+++ b/apps/studio/pages/project/[ref]/database/triggers.tsx
@@ -7,7 +7,7 @@ import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const TriggersPage: NextPageWithLayout = () => {
const [selectedTrigger, setSelectedTrigger] = useState<any>()
diff --git a/apps/studio/pages/project/[ref]/database/types.tsx b/apps/studio/pages/project/[ref]/database/types.tsx
index 6edecf41260..450b9a8fee3 100644
--- a/apps/studio/pages/project/[ref]/database/types.tsx
+++ b/apps/studio/pages/project/[ref]/database/types.tsx
@@ -9,7 +9,7 @@ import {
ScaffoldSectionContent,
ScaffoldSectionDetail,
} from 'components/layouts/Scaffold'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseEnumeratedTypes: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/database/wrappers/[id].tsx b/apps/studio/pages/project/[ref]/database/wrappers/[id].tsx
index d7fca6009d8..1259a2c67ed 100644
--- a/apps/studio/pages/project/[ref]/database/wrappers/[id].tsx
+++ b/apps/studio/pages/project/[ref]/database/wrappers/[id].tsx
@@ -4,7 +4,7 @@ import { EditWrapper } from 'components/interfaces/Database'
import { DatabaseLayout } from 'components/layouts'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseWrappersNew: NextPageWithLayout = () => {
const canReadWrappers = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'wrappers')
diff --git a/apps/studio/pages/project/[ref]/database/wrappers/index.tsx b/apps/studio/pages/project/[ref]/database/wrappers/index.tsx
index 77da4de2ac5..7b18ac978df 100644
--- a/apps/studio/pages/project/[ref]/database/wrappers/index.tsx
+++ b/apps/studio/pages/project/[ref]/database/wrappers/index.tsx
@@ -5,7 +5,7 @@ import { DatabaseLayout } from 'components/layouts'
import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseWrappers: NextPageWithLayout = () => {
const canReadWrappers = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_READ, 'tables')
diff --git a/apps/studio/pages/project/[ref]/database/wrappers/new.tsx b/apps/studio/pages/project/[ref]/database/wrappers/new.tsx
index 4aa779c2906..0ca29ffc4c0 100644
--- a/apps/studio/pages/project/[ref]/database/wrappers/new.tsx
+++ b/apps/studio/pages/project/[ref]/database/wrappers/new.tsx
@@ -4,7 +4,7 @@ import { CreateWrapper } from 'components/interfaces/Database'
import { DatabaseLayout } from 'components/layouts'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseWrappersNew: NextPageWithLayout = () => {
const canCreateWrappers = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'tables')
diff --git a/apps/studio/pages/project/[ref]/editor/[id].tsx b/apps/studio/pages/project/[ref]/editor/[id].tsx
index 1b84514ea61..f392a1f4e77 100644
--- a/apps/studio/pages/project/[ref]/editor/[id].tsx
+++ b/apps/studio/pages/project/[ref]/editor/[id].tsx
@@ -6,7 +6,7 @@ import { TableEditorLayout } from 'components/layouts'
import { ProjectContextFromParamsProvider } from 'components/layouts/ProjectLayout/ProjectContext'
import useTable from 'hooks/misc/useTable'
import { useRouter } from 'next/router'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const TableEditorPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/project/[ref]/editor/index.tsx b/apps/studio/pages/project/[ref]/editor/index.tsx
index 55c2cfe0189..f5773b81f96 100644
--- a/apps/studio/pages/project/[ref]/editor/index.tsx
+++ b/apps/studio/pages/project/[ref]/editor/index.tsx
@@ -4,8 +4,8 @@ import { useParams } from 'common'
import { EmptyState, SidePanelEditor } from 'components/interfaces/TableGridEditor'
import { TableEditorLayout } from 'components/layouts'
import { ProjectContextFromParamsProvider } from 'components/layouts/ProjectLayout/ProjectContext'
-import { Table } from 'data/tables/table-query'
-import { NextPageWithLayout } from 'types'
+import type { Table } from 'data/tables/table-query'
+import type { NextPageWithLayout } from 'types'
const TableEditorPage: NextPageWithLayout = () => {
const { ref: projectRef } = useParams()
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx
index 030918419f7..88e563b343f 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/details.tsx
@@ -1,6 +1,6 @@
import { EdgeFunctionDetails } from 'components/interfaces/Functions'
import FunctionsLayout from 'components/layouts/FunctionsLayout'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => <EdgeFunctionDetails />
PageLayout.getLayout = (page) => <FunctionsLayout>{page}</FunctionsLayout>
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx
index 1ddd875a970..0316665378a 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx
@@ -17,7 +17,7 @@ import { useFunctionsResourceUsageQuery } from 'data/analytics/functions-resourc
import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'
import { useCheckPermissions } from 'hooks'
import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'
-import { ChartIntervals, NextPageWithLayout } from 'types'
+import type { ChartIntervals, NextPageWithLayout } from 'types'
const CHART_INTERVALS: ChartIntervals[] = [
{
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx
index 409d295fb8a..94d90a18b09 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/invocations.tsx
@@ -3,7 +3,7 @@ import { useParams } from 'common'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import FunctionsLayout from 'components/layouts/FunctionsLayout'
import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
/**
* Placeholder page for logs previewers until we figure out where to slot them
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx
index 404985c654a..429241aeda1 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/logs.tsx
@@ -1,5 +1,5 @@
import { observer } from 'mobx-react-lite'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { useParams } from 'common/hooks'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import FunctionsLayout from 'components/layouts/FunctionsLayout'
diff --git a/apps/studio/pages/project/[ref]/functions/index.tsx b/apps/studio/pages/project/[ref]/functions/index.tsx
index fb4755a8794..bfd9e6b3260 100644
--- a/apps/studio/pages/project/[ref]/functions/index.tsx
+++ b/apps/studio/pages/project/[ref]/functions/index.tsx
@@ -12,7 +12,7 @@ import Table from 'components/to-be-cleaned/Table'
import AlertError from 'components/ui/AlertError'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useEdgeFunctionsQuery } from 'data/edge-functions/edge-functions-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
const { ref } = useParams()
diff --git a/apps/studio/pages/project/[ref]/index.tsx b/apps/studio/pages/project/[ref]/index.tsx
index a64e832739a..2e6b233a64c 100644
--- a/apps/studio/pages/project/[ref]/index.tsx
+++ b/apps/studio/pages/project/[ref]/index.tsx
@@ -12,7 +12,7 @@ import ProjectUpgradeFailedBanner from 'components/ui/ProjectUpgradeFailedBanner
import { useSelectedProject } from 'hooks'
import { IS_PLATFORM, PROJECT_STATUS } from 'lib/constants'
import { useAppStateSnapshot } from 'state/app-state'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const Home: NextPageWithLayout = () => {
const project = useSelectedProject()
diff --git a/apps/studio/pages/project/[ref]/logs/auth-logs.tsx b/apps/studio/pages/project/[ref]/logs/auth-logs.tsx
index de0f83e1d43..61ba4ceaddb 100644
--- a/apps/studio/pages/project/[ref]/logs/auth-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/auth-logs.tsx
@@ -5,7 +5,7 @@ import { LogsLayout } from 'components/layouts'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import NoPermission from 'components/ui/NoPermission'
import { useCheckPermissions } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const LogsPage: NextPageWithLayout = () => {
const { project } = useProjectContext()
diff --git a/apps/studio/pages/project/[ref]/logs/edge-logs.tsx b/apps/studio/pages/project/[ref]/logs/edge-logs.tsx
index 94fc37d0a85..4d2c517b187 100644
--- a/apps/studio/pages/project/[ref]/logs/edge-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/edge-logs.tsx
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import { LogsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/index.tsx b/apps/studio/pages/project/[ref]/logs/explorer/index.tsx
index 0980bc94b3c..23d42bef428 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/index.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/index.tsx
@@ -37,7 +37,7 @@ import useLogsQuery from 'hooks/analytics/useLogsQuery'
import { useUpgradePrompt } from 'hooks/misc/useUpgradePrompt'
import { LOCAL_STORAGE_KEYS } from 'lib/constants'
import { uuidv4 } from 'lib/helpers'
-import { LogSqlSnippets, NextPageWithLayout } from 'types'
+import type { LogSqlSnippets, NextPageWithLayout } from 'types'
const PLACEHOLDER_QUERY =
'select\n cast(timestamp as datetime) as timestamp,\n event_message, metadata \nfrom edge_logs \nlimit 5'
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
index 23f0851b43b..65d3cd86987 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
@@ -7,7 +7,7 @@ import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
import Table from 'components/to-be-cleaned/Table'
import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader'
import { useLocalStorage } from 'hooks'
-import { LogSqlSnippets, NextPageWithLayout } from 'types'
+import type { LogSqlSnippets, NextPageWithLayout } from 'types'
export const LogsSavedPage: NextPageWithLayout = () => {
const { ref } = useParams()
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx b/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx
index 6b121f1ae30..6549bb5823f 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx
@@ -7,7 +7,7 @@ import { LogsLayout } from 'components/layouts'
import Table from 'components/to-be-cleaned/Table'
import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader'
import { useContentQuery } from 'data/content/content-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogsSavedPage: NextPageWithLayout = () => {
const { ref } = useParams()
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx
index 59e3814d89b..633da843ac6 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/templates.tsx
@@ -6,7 +6,7 @@ import { LogTemplate, TEMPLATES } from 'components/interfaces/Settings/Logs'
import LogsLayout from 'components/layouts/LogsLayout/LogsLayout'
import CardButton from 'components/ui/CardButton'
import LogsExplorerHeader from 'components/ui/Logs/LogsExplorerHeader'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogsTemplatesPage: NextPageWithLayout = () => {
const { ref: projectRef } = useParams()
diff --git a/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx b/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx
index 1b69384a7e1..ac8d3c81a2a 100644
--- a/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/pooler-logs.tsx
@@ -4,7 +4,7 @@ import { LogsTableName } from 'components/interfaces/Settings/Logs'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import { LogsLayout } from 'components/layouts'
import { usePoolingConfigurationQuery } from 'data/database/pooling-configuration-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { Loading } from 'components/ui/Loading'
export const LogPage: NextPageWithLayout = () => {
diff --git a/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx b/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx
index 796854e036d..e8277e57f10 100644
--- a/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/postgres-logs.tsx
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import { LogsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx b/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx
index e3499994612..9d265ead1dc 100644
--- a/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/postgrest-logs.tsx
@@ -3,7 +3,7 @@ import { useRouter } from 'next/router'
import { LogsTableName } from 'components/interfaces/Settings/Logs'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import { LogsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx b/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx
index 06a216fad65..edc0fbff207 100644
--- a/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/realtime-logs.tsx
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import { LogsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/project/[ref]/logs/storage-logs.tsx b/apps/studio/pages/project/[ref]/logs/storage-logs.tsx
index 40b8ee28b31..3aceb7b19a9 100644
--- a/apps/studio/pages/project/[ref]/logs/storage-logs.tsx
+++ b/apps/studio/pages/project/[ref]/logs/storage-logs.tsx
@@ -2,7 +2,7 @@ import { useRouter } from 'next/router'
import LogsPreviewer from 'components/interfaces/Settings/Logs/LogsPreviewer'
import { LogsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
export const LogPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/project/[ref]/realtime/inspector.tsx b/apps/studio/pages/project/[ref]/realtime/inspector.tsx
index e23f5f7f97c..3d3c3efe2f2 100644
--- a/apps/studio/pages/project/[ref]/realtime/inspector.tsx
+++ b/apps/studio/pages/project/[ref]/realtime/inspector.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { RealtimeInspector } from 'components/interfaces/Realtime/Inspector'
import RealtimeLayout from 'components/layouts/RealtimeLayout/RealtimeLayout'
diff --git a/apps/studio/pages/project/[ref]/reports/[id].tsx b/apps/studio/pages/project/[ref]/reports/[id].tsx
index 05069cb2c68..fd048568f65 100644
--- a/apps/studio/pages/project/[ref]/reports/[id].tsx
+++ b/apps/studio/pages/project/[ref]/reports/[id].tsx
@@ -1,7 +1,7 @@
import Reports from 'components/interfaces/Reports/Reports'
import { ReportsLayout } from 'components/layouts'
import EditReportModal from 'components/to-be-cleaned/Reports/EditReportModal'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => (
<>
diff --git a/apps/studio/pages/project/[ref]/reports/database.tsx b/apps/studio/pages/project/[ref]/reports/database.tsx
index 08308123808..e55d4e0983b 100644
--- a/apps/studio/pages/project/[ref]/reports/database.tsx
+++ b/apps/studio/pages/project/[ref]/reports/database.tsx
@@ -20,10 +20,10 @@ import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'
import Table from 'components/to-be-cleaned/Table'
import Panel from 'components/ui/Panel'
import { useDatabaseSizeQuery } from 'data/database/database-size-query'
-import { DbQueryHook } from 'hooks/analytics/useDbQuery'
+import type { DbQueryHook } from 'hooks/analytics/useDbQuery'
import { TIME_PERIODS_INFRA } from 'lib/constants/metrics'
import { formatBytes } from 'lib/helpers'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const DatabaseReport: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/reports/index.tsx b/apps/studio/pages/project/[ref]/reports/index.tsx
index 5bf2027ab5f..bbcb2d7d49c 100644
--- a/apps/studio/pages/project/[ref]/reports/index.tsx
+++ b/apps/studio/pages/project/[ref]/reports/index.tsx
@@ -10,7 +10,7 @@ import { Loading } from 'components/ui/Loading'
import { useCheckPermissions, useStore } from 'hooks'
import { useProfile } from 'lib/profile'
import { useProjectContentStore } from 'stores/projectContentStore'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { CreateReportModal } from 'components/interfaces/Reports/Reports.CreateReportModal'
export const UserReportPage: NextPageWithLayout = () => {
diff --git a/apps/studio/pages/project/[ref]/reports/query-performance.tsx b/apps/studio/pages/project/[ref]/reports/query-performance.tsx
index 224d28e89ac..ac235d68aa5 100644
--- a/apps/studio/pages/project/[ref]/reports/query-performance.tsx
+++ b/apps/studio/pages/project/[ref]/reports/query-performance.tsx
@@ -34,7 +34,7 @@ import Table from 'components/to-be-cleaned/Table'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import { executeSql } from 'data/sql/execute-sql-query'
import { useFlag } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
type QueryPerformancePreset = 'time' | 'frequent' | 'slowest'
diff --git a/apps/studio/pages/project/[ref]/reports/storage.tsx b/apps/studio/pages/project/[ref]/reports/storage.tsx
index fc77bdd08d1..80a147f492e 100644
--- a/apps/studio/pages/project/[ref]/reports/storage.tsx
+++ b/apps/studio/pages/project/[ref]/reports/storage.tsx
@@ -1,5 +1,5 @@
import { observer } from 'mobx-react-lite'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { ReportsLayout } from 'components/layouts'
import {
PRESET_CONFIG,
diff --git a/apps/studio/pages/project/[ref]/settings/addons.tsx b/apps/studio/pages/project/[ref]/settings/addons.tsx
index b6c18133f2d..f2ecf92b3d0 100644
--- a/apps/studio/pages/project/[ref]/settings/addons.tsx
+++ b/apps/studio/pages/project/[ref]/settings/addons.tsx
@@ -1,6 +1,6 @@
import Addons from 'components/interfaces/Settings/Addons/Addons'
import { SettingsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ProjectAddons: NextPageWithLayout = () => {
return <Addons />
diff --git a/apps/studio/pages/project/[ref]/settings/api.tsx b/apps/studio/pages/project/[ref]/settings/api.tsx
index 658356e69e4..2f4446fdaf2 100644
--- a/apps/studio/pages/project/[ref]/settings/api.tsx
+++ b/apps/studio/pages/project/[ref]/settings/api.tsx
@@ -1,6 +1,6 @@
import ServiceList from 'components/interfaces/Settings/API/ServiceList'
import { SettingsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ApiSettings: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/settings/auth.tsx b/apps/studio/pages/project/[ref]/settings/auth.tsx
index a96017e7b15..4183bf35886 100644
--- a/apps/studio/pages/project/[ref]/settings/auth.tsx
+++ b/apps/studio/pages/project/[ref]/settings/auth.tsx
@@ -10,7 +10,7 @@ import { FormHeader } from 'components/ui/Forms'
import NoPermission from 'components/ui/NoPermission'
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
import { useCheckPermissions, usePermissionsLoaded } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const AuthSettings: NextPageWithLayout = () => {
const isPermissionsLoaded = usePermissionsLoaded()
diff --git a/apps/studio/pages/project/[ref]/settings/billing/usage.tsx b/apps/studio/pages/project/[ref]/settings/billing/usage.tsx
index 77a4e9b1624..2a84f5e0c0c 100644
--- a/apps/studio/pages/project/[ref]/settings/billing/usage.tsx
+++ b/apps/studio/pages/project/[ref]/settings/billing/usage.tsx
@@ -1,5 +1,5 @@
import { SettingsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import { useSelectedOrganization } from 'hooks'
diff --git a/apps/studio/pages/project/[ref]/settings/database.tsx b/apps/studio/pages/project/[ref]/settings/database.tsx
index 86395618170..f4ceecc5eea 100644
--- a/apps/studio/pages/project/[ref]/settings/database.tsx
+++ b/apps/studio/pages/project/[ref]/settings/database.tsx
@@ -5,7 +5,7 @@ import {
} from 'components/interfaces/Settings/Database'
import { SettingsLayout } from 'components/layouts'
import { observer } from 'mobx-react-lite'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import BannedIPs from 'components/interfaces/Settings/Database/BannedIPs'
import { DatabaseReadOnlyAlert } from 'components/interfaces/Settings/Database/DatabaseReadOnlyAlert'
diff --git a/apps/studio/pages/project/[ref]/settings/functions.tsx b/apps/studio/pages/project/[ref]/settings/functions.tsx
index cffa8f66673..e13db6297db 100644
--- a/apps/studio/pages/project/[ref]/settings/functions.tsx
+++ b/apps/studio/pages/project/[ref]/settings/functions.tsx
@@ -1,6 +1,6 @@
import EdgeFunctionSecrets from 'components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets'
import { SettingsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/settings/general.tsx b/apps/studio/pages/project/[ref]/settings/general.tsx
index 7d15f69fe2b..8abcbe7f75a 100644
--- a/apps/studio/pages/project/[ref]/settings/general.tsx
+++ b/apps/studio/pages/project/[ref]/settings/general.tsx
@@ -7,7 +7,7 @@ import {
import { SettingsLayout } from 'components/layouts'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { useIsFeatureEnabled } from 'hooks'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ProjectSettings: NextPageWithLayout = () => {
const { project } = useProjectContext()
diff --git a/apps/studio/pages/project/[ref]/settings/index.tsx b/apps/studio/pages/project/[ref]/settings/index.tsx
index de9d7c708d1..80acf1c70ca 100644
--- a/apps/studio/pages/project/[ref]/settings/index.tsx
+++ b/apps/studio/pages/project/[ref]/settings/index.tsx
@@ -1,7 +1,7 @@
import { observer } from 'mobx-react-lite'
import { SettingsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const Settings: NextPageWithLayout = () => {
return <>{/* <h1>Use this as a page template for settings pages</h1> */}</>
diff --git a/apps/studio/pages/project/[ref]/settings/infrastructure.tsx b/apps/studio/pages/project/[ref]/settings/infrastructure.tsx
index a5456c9de88..3c640727222 100644
--- a/apps/studio/pages/project/[ref]/settings/infrastructure.tsx
+++ b/apps/studio/pages/project/[ref]/settings/infrastructure.tsx
@@ -2,7 +2,7 @@ import InfrastructureActivity from 'components/interfaces/Settings/Infrastructur
import InfrastructureInfo from 'components/interfaces/Settings/Infrastructure/InfrastructureInfo'
import { SettingsLayout } from 'components/layouts'
import { ScaffoldDivider } from 'components/layouts/Scaffold'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ProjectInfrastructure: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/settings/integrations.tsx b/apps/studio/pages/project/[ref]/settings/integrations.tsx
index bb9bbc89de2..dbd9a203c0e 100644
--- a/apps/studio/pages/project/[ref]/settings/integrations.tsx
+++ b/apps/studio/pages/project/[ref]/settings/integrations.tsx
@@ -1,6 +1,6 @@
import IntegrationSettings from 'components/interfaces/Settings/Integrations/IntegrationsSettings'
import { SettingsLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const OrgIntegrationSettings: NextPageWithLayout = () => {
return <IntegrationSettings />
diff --git a/apps/studio/pages/project/[ref]/settings/storage.tsx b/apps/studio/pages/project/[ref]/settings/storage.tsx
index 96caad2fbdb..ecbcb6b4fdc 100644
--- a/apps/studio/pages/project/[ref]/settings/storage.tsx
+++ b/apps/studio/pages/project/[ref]/settings/storage.tsx
@@ -1,6 +1,6 @@
import { SettingsLayout } from 'components/layouts'
import { StorageSettings } from 'components/to-be-cleaned/Storage'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/project/[ref]/settings/vault/keys.tsx b/apps/studio/pages/project/[ref]/settings/vault/keys.tsx
index a3716a453bf..20d4f47830b 100644
--- a/apps/studio/pages/project/[ref]/settings/vault/keys.tsx
+++ b/apps/studio/pages/project/[ref]/settings/vault/keys.tsx
@@ -7,7 +7,7 @@ import { SettingsLayout } from 'components/layouts'
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import { FormHeader } from 'components/ui/Forms'
import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import Link from 'next/link'
import VaultNavTabs from 'components/interfaces/Settings/Vault/VaultNavTabs'
diff --git a/apps/studio/pages/project/[ref]/settings/vault/secrets.tsx b/apps/studio/pages/project/[ref]/settings/vault/secrets.tsx
index 503d5108564..8140d093233 100644
--- a/apps/studio/pages/project/[ref]/settings/vault/secrets.tsx
+++ b/apps/studio/pages/project/[ref]/settings/vault/secrets.tsx
@@ -6,7 +6,7 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConte
import { FormHeader } from 'components/ui/Forms'
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import VaultNavTabs from 'components/interfaces/Settings/Vault/VaultNavTabs'
const VaultSettingsSecrets: NextPageWithLayout = () => {
diff --git a/apps/studio/pages/project/[ref]/sql/[id].tsx b/apps/studio/pages/project/[ref]/sql/[id].tsx
index eeca39984aa..accfced29d6 100644
--- a/apps/studio/pages/project/[ref]/sql/[id].tsx
+++ b/apps/studio/pages/project/[ref]/sql/[id].tsx
@@ -9,7 +9,7 @@ import { useKeywordsQuery } from 'data/database/keywords-query'
import { useSchemasQuery } from 'data/database/schemas-query'
import { useTableColumnsQuery } from 'data/database/table-columns-query'
import { useFormatQueryMutation } from 'data/sql/format-sql-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import SQLEditor from 'components/interfaces/SQLEditor/SQLEditor'
import { SQLEditorLayout } from 'components/layouts'
diff --git a/apps/studio/pages/project/[ref]/sql/quickstarts.tsx b/apps/studio/pages/project/[ref]/sql/quickstarts.tsx
index 5b2edba2fdc..fe8ae458afe 100644
--- a/apps/studio/pages/project/[ref]/sql/quickstarts.tsx
+++ b/apps/studio/pages/project/[ref]/sql/quickstarts.tsx
@@ -1,5 +1,5 @@
import { observer } from 'mobx-react-lite'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { SQLEditorLayout } from 'components/layouts'
import SQLQuickstarts from 'components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts'
diff --git a/apps/studio/pages/project/[ref]/sql/templates.tsx b/apps/studio/pages/project/[ref]/sql/templates.tsx
index 050b608233b..9a12c0a78bf 100644
--- a/apps/studio/pages/project/[ref]/sql/templates.tsx
+++ b/apps/studio/pages/project/[ref]/sql/templates.tsx
@@ -1,5 +1,5 @@
import { observer } from 'mobx-react-lite'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
import { SQLEditorLayout } from 'components/layouts'
import SQLTemplates from 'components/interfaces/SQLEditor/SQLTemplates/SQLTemplates'
diff --git a/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx b/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx
index e631591593c..38559efc142 100644
--- a/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx
+++ b/apps/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx
@@ -7,7 +7,7 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConte
import StorageBucketsError from 'components/layouts/StorageLayout/StorageBucketsError'
import { StorageExplorer } from 'components/to-be-cleaned/Storage'
import { useBucketsQuery } from 'data/storage/buckets-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const PageLayout: NextPageWithLayout = () => {
const { ref, bucketId } = useParams()
diff --git a/apps/studio/pages/project/[ref]/storage/buckets/index.tsx b/apps/studio/pages/project/[ref]/storage/buckets/index.tsx
index 072f853fb75..e92ef391bc8 100644
--- a/apps/studio/pages/project/[ref]/storage/buckets/index.tsx
+++ b/apps/studio/pages/project/[ref]/storage/buckets/index.tsx
@@ -5,7 +5,7 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConte
import StorageBucketsError from 'components/layouts/StorageLayout/StorageBucketsError'
import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'
import { useBucketsQuery } from 'data/storage/buckets-query'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
/**
* PageLayout is used to setup layout - as usual it will requires inject global store
diff --git a/apps/studio/pages/project/[ref]/storage/index.tsx b/apps/studio/pages/project/[ref]/storage/index.tsx
index 884d5909fff..23206ef662a 100644
--- a/apps/studio/pages/project/[ref]/storage/index.tsx
+++ b/apps/studio/pages/project/[ref]/storage/index.tsx
@@ -1,7 +1,7 @@
import { observer } from 'mobx-react-lite'
import { StorageLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const Storage: NextPageWithLayout = () => {
return <>{/* <h1>Use this as a template for storage pages</h1> */}</>
diff --git a/apps/studio/pages/project/[ref]/storage/policies.tsx b/apps/studio/pages/project/[ref]/storage/policies.tsx
index 2a99d20adac..f0cbe7b0b8d 100644
--- a/apps/studio/pages/project/[ref]/storage/policies.tsx
+++ b/apps/studio/pages/project/[ref]/storage/policies.tsx
@@ -1,6 +1,6 @@
import { StorageLayout } from 'components/layouts'
import { StoragePolicies } from 'components/to-be-cleaned/Storage'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const StoragePoliciesPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/projects.tsx b/apps/studio/pages/projects.tsx
index 05ebe5d58c0..9a2fc5231f0 100644
--- a/apps/studio/pages/projects.tsx
+++ b/apps/studio/pages/projects.tsx
@@ -10,7 +10,7 @@ import { useOrganizationsQuery } from 'data/organizations/organizations-query'
import { useAutoProjectsPrefetch } from 'data/projects/projects-query'
import { useFlag, useIsFeatureEnabled } from 'hooks'
import { IS_PLATFORM, LOCAL_STORAGE_KEYS } from 'lib/constants'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ProjectsPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/reset-password.tsx b/apps/studio/pages/reset-password.tsx
index f691d5a91e7..d8dbf7bcd8f 100644
--- a/apps/studio/pages/reset-password.tsx
+++ b/apps/studio/pages/reset-password.tsx
@@ -2,7 +2,7 @@ import ResetPasswordForm from 'components/interfaces/SignIn/ResetPasswordForm'
import { ForgotPasswordLayout } from 'components/layouts'
import { withAuth } from 'hooks'
import Link from 'next/link'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const ResetPasswordPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/sign-in-mfa.tsx b/apps/studio/pages/sign-in-mfa.tsx
index d72348b7431..1eeb20fe3be 100644
--- a/apps/studio/pages/sign-in-mfa.tsx
+++ b/apps/studio/pages/sign-in-mfa.tsx
@@ -9,7 +9,7 @@ import { SignInLayout } from 'components/layouts'
import { Loading } from 'components/ui/Loading'
import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'
import Telemetry from 'lib/telemetry'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const SignInMfaPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/sign-in-sso.tsx b/apps/studio/pages/sign-in-sso.tsx
index fe1896dfc5b..348d36f5ba7 100644
--- a/apps/studio/pages/sign-in-sso.tsx
+++ b/apps/studio/pages/sign-in-sso.tsx
@@ -1,6 +1,6 @@
import SignInSSOForm from 'components/interfaces/SignIn/SignInSSOForm'
import { SignInLayout } from 'components/layouts'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const SignInSSOPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/sign-in.tsx b/apps/studio/pages/sign-in.tsx
index 6609705ddb5..e9d03e1caea 100644
--- a/apps/studio/pages/sign-in.tsx
+++ b/apps/studio/pages/sign-in.tsx
@@ -7,7 +7,7 @@ import { SignInLayout } from 'components/layouts'
import { IS_PLATFORM } from 'lib/constants'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const SignInPage: NextPageWithLayout = () => {
const router = useRouter()
diff --git a/apps/studio/pages/sign-up.tsx b/apps/studio/pages/sign-up.tsx
index 81e9aff76a3..4dc6e50ad33 100644
--- a/apps/studio/pages/sign-up.tsx
+++ b/apps/studio/pages/sign-up.tsx
@@ -2,7 +2,7 @@ import SignInWithGitHub from 'components/interfaces/SignIn/SignInWithGitHub'
import SignUpForm from 'components/interfaces/SignIn/SignUpForm'
import { SignInLayout } from 'components/layouts'
import Link from 'next/link'
-import { NextPageWithLayout } from 'types'
+import type { NextPageWithLayout } from 'types'
const SignUpPage: NextPageWithLayout = () => {
return (
diff --git a/apps/studio/pages/vercel/integrate.tsx b/apps/studio/pages/vercel/integrate.tsx
index 04a8e2183c2..ea09d378697 100644
--- a/apps/studio/pages/vercel/integrate.tsx
+++ b/apps/studio/pages/vercel/integrate.tsx
@@ -6,7 +6,7 @@ import { useRouter } from 'next/router'
import { ChangeEvent, createContext, useContext, useEffect, useState } from 'react'
import { toast } from 'react-hot-toast'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import VercelIntegrationLayout from 'components/layouts/VercelIntegrationLayout'
import {
createVercelEnv,
diff --git a/apps/studio/pages/vercel/setupProject.tsx b/apps/studio/pages/vercel/setupProject.tsx
index c1a90490f38..4fa8bed92e3 100644
--- a/apps/studio/pages/vercel/setupProject.tsx
+++ b/apps/studio/pages/vercel/setupProject.tsx
@@ -7,7 +7,7 @@ import { ChangeEvent, createContext, useContext, useEffect, useRef, useState } f
import { toast } from 'react-hot-toast'
import { Button, Input, Listbox } from 'ui'
-import { Dictionary } from 'types'
+import type { Dictionary } from 'types'
import VercelIntegrationLayout from 'components/layouts/VercelIntegrationLayout'
import {
createVercelEnv,
diff --git a/apps/studio/state/sql-editor.ts b/apps/studio/state/sql-editor.ts
index fdc98e1b0ab..6764bdac3ac 100644
--- a/apps/studio/state/sql-editor.ts
+++ b/apps/studio/state/sql-editor.ts
@@ -4,8 +4,8 @@ import { proxy, snapshot, subscribe, useSnapshot } from 'valtio'
import { devtools, proxySet } from 'valtio/utils'
import { upsertContent, UpsertContentPayload } from 'data/content/content-upsert-mutation'
-import { SqlSnippet } from 'data/content/sql-snippets-query'
-import { SqlSnippets } from 'types'
+import type { SqlSnippet } from 'data/content/sql-snippets-query'
+import type { SqlSnippets } from 'types'
export type StateSnippet = {
snippet: SqlSnippet
diff --git a/apps/studio/state/table-editor.tsx b/apps/studio/state/table-editor.tsx
index 4103dfcbfd1..cc1f72ea2b3 100644
--- a/apps/studio/state/table-editor.tsx
+++ b/apps/studio/state/table-editor.tsx
@@ -1,8 +1,8 @@
-import { PostgresColumn } from '@supabase/postgres-meta'
-import { SupaRow } from 'components/grid'
-import { Dictionary } from 'types'
+import type { PostgresColumn } from '@supabase/postgres-meta'
+import type { SupaRow } from 'components/grid'
+import type { Dictionary } from 'types'
import { ForeignRowSelectorProps } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector'
-import { JsonEditValue } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.types'
+import type { JsonEditValue } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.types'
import { PropsWithChildren, createContext, useContext, useRef } from 'react'
import { proxy, useSnapshot } from 'valtio'
diff --git a/apps/studio/stores/RootStore.ts b/apps/studio/stores/RootStore.ts
index c428eec6a4b..0f59e15a128 100644
--- a/apps/studio/stores/RootStore.ts
+++ b/apps/studio/stores/RootStore.ts
@@ -1,6 +1,6 @@
import { configure } from 'mobx'
-import { Project } from 'data/projects/project-detail-query'
+import type { Project } from 'data/projects/project-detail-query'
import UiStore, { IUiStore } from './UiStore'
import MetaStore, { IMetaStore } from './pgmeta/MetaStore'
diff --git a/apps/studio/stores/UiStore.ts b/apps/studio/stores/UiStore.ts
index 91734dd99de..345bbbb3fa8 100644
--- a/apps/studio/stores/UiStore.ts
+++ b/apps/studio/stores/UiStore.ts
@@ -1,8 +1,8 @@
import { action, makeAutoObservable } from 'mobx'
import { uuidv4 } from 'lib/helpers'
-import { Notification } from 'types'
-import { IRootStore } from './RootStore'
+import type { Notification } from 'types'
+import type { IRootStore } from './RootStore'
export interface IUiStore {
language: 'en-US'
diff --git a/apps/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx b/apps/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx
index e14db176c22..466aa4945e5 100644
--- a/apps/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx
+++ b/apps/studio/stores/authConfig/schema/AuthProviders/AuthTemplatesValidation.tsx
@@ -1,4 +1,4 @@
-import { FormSchema } from 'types'
+import type { FormSchema } from 'types'
import { object, string } from 'yup'
const JSON_SCHEMA_VERSION = 'http://json-schema.org/draft-07/schema#'
diff --git a/apps/studio/stores/pgmeta/MetaStore.ts b/apps/studio/stores/pgmeta/MetaStore.ts
index 7dee87467ad..87b23323129 100644
--- a/apps/studio/stores/pgmeta/MetaStore.ts
+++ b/apps/studio/stores/pgmeta/MetaStore.ts
@@ -2,9 +2,9 @@ import { makeObservable } from 'mobx'
import { post } from 'lib/common/fetch'
import { API_URL, IS_PLATFORM } from 'lib/constants'
-import { ResponseError } from 'types'
+import type { ResponseError } from 'types'
-import { IRootStore } from '../RootStore'
+import type { IRootStore } from '../RootStore'
export interface IMetaStore {
projectRef?: string
diff --git a/apps/studio/stores/projectContentStore.ts b/apps/studio/stores/projectContentStore.ts
index 6abf8092fe0..cac7ff84f35 100644
--- a/apps/studio/stores/projectContentStore.ts
+++ b/apps/studio/stores/projectContentStore.ts
@@ -1,7 +1,7 @@
import { makeObservable, observable, computed } from 'mobx'
import { get, patch, post, delete_ } from 'lib/common/fetch'
import { keyBy } from 'lodash'
-import { UserContent } from 'types'
+import type { UserContent } from 'types'
import { API_URL } from 'lib/constants'
/**
diff --git a/apps/studio/types/next.ts b/apps/studio/types/next.ts
index 440e552e411..1748d732da0 100644
--- a/apps/studio/types/next.ts
+++ b/apps/studio/types/next.ts
@@ -1,6 +1,6 @@
-import { NextPage } from 'next'
-import { AppProps } from 'next/app'
-import { ComponentType, ReactElement, ReactNode } from 'react'
+import type { NextPage } from 'next'
+import type { AppProps } from 'next/app'
+import type { ComponentType, ReactElement, ReactNode } from 'react'
export type AppPropsWithLayout = AppProps<{ dehydratedState: any }> & {
Component: NextPageWithLayout