summaryrefslogtreecommitdiff
path: root/packages/db/src
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2024-08-27 16:49:42 +0100
committerGravatar GitHub <noreply@github.com> 2024-08-27 16:49:42 +0100
commitb601e47aff5e3c36fea0ca18f28dc5c785e1cba8 (patch)
tree04289baa8ac859a425d2ae9172b74aa3f368d98d /packages/db/src
parented7bbd990f80cacf9c5ec2a70ad7501631b92d3f (diff)
downloadastro-b601e47aff5e3c36fea0ca18f28dc5c785e1cba8.tar.gz
astro-b601e47aff5e3c36fea0ca18f28dc5c785e1cba8.tar.zst
astro-b601e47aff5e3c36fea0ca18f28dc5c785e1cba8.zip
chore: enable `useImportType` rule (#11848)
Diffstat (limited to 'packages/db/src')
-rw-r--r--packages/db/src/core/cli/commands/link/index.ts2
-rw-r--r--packages/db/src/core/cli/commands/push/index.ts2
-rw-r--r--packages/db/src/core/cli/migration-queries.ts28
-rw-r--r--packages/db/src/core/queries.ts2
-rw-r--r--packages/db/src/runtime/index.ts2
5 files changed, 18 insertions, 18 deletions
diff --git a/packages/db/src/core/cli/commands/link/index.ts b/packages/db/src/core/cli/commands/link/index.ts
index d39b8c09a..525dacce0 100644
--- a/packages/db/src/core/cli/commands/link/index.ts
+++ b/packages/db/src/core/cli/commands/link/index.ts
@@ -12,7 +12,7 @@ import { bgRed, cyan } from 'kleur/colors';
import ora from 'ora';
import prompts from 'prompts';
import { safeFetch } from '../../../../runtime/utils.js';
-import { type Result } from '../../../utils.js';
+import type { Result } from '../../../utils.js';
export async function cmd() {
const sessionToken = await getSessionIdFromFile();
diff --git a/packages/db/src/core/cli/commands/push/index.ts b/packages/db/src/core/cli/commands/push/index.ts
index ecd101ece..2d19daee5 100644
--- a/packages/db/src/core/cli/commands/push/index.ts
+++ b/packages/db/src/core/cli/commands/push/index.ts
@@ -4,7 +4,7 @@ import prompts from 'prompts';
import type { Arguments } from 'yargs-parser';
import { safeFetch } from '../../../../runtime/utils.js';
import { MIGRATION_VERSION } from '../../../consts.js';
-import { type DBConfig, type DBSnapshot } from '../../../types.js';
+import type { DBConfig, DBSnapshot } from '../../../types.js';
import { type Result, getRemoteDatabaseUrl } from '../../../utils.js';
import {
createCurrentSnapshot,
diff --git a/packages/db/src/core/cli/migration-queries.ts b/packages/db/src/core/cli/migration-queries.ts
index 894c1d66f..da5d70be1 100644
--- a/packages/db/src/core/cli/migration-queries.ts
+++ b/packages/db/src/core/cli/migration-queries.ts
@@ -18,20 +18,20 @@ import {
schemaTypeToSqlType,
} from '../queries.js';
import { columnSchema } from '../schemas.js';
-import {
- type BooleanColumn,
- type ColumnType,
- type DBColumn,
- type DBColumns,
- type DBConfig,
- type DBSnapshot,
- type DateColumn,
- type JsonColumn,
- type NumberColumn,
- type ResolvedDBTable,
- type ResolvedDBTables,
- type ResolvedIndexes,
- type TextColumn,
+import type {
+ BooleanColumn,
+ ColumnType,
+ DBColumn,
+ DBColumns,
+ DBConfig,
+ DBSnapshot,
+ DateColumn,
+ JsonColumn,
+ NumberColumn,
+ ResolvedDBTable,
+ ResolvedDBTables,
+ ResolvedIndexes,
+ TextColumn,
} from '../types.js';
import { type Result, getRemoteDatabaseUrl } from '../utils.js';
diff --git a/packages/db/src/core/queries.ts b/packages/db/src/core/queries.ts
index 705205ee4..cf472d423 100644
--- a/packages/db/src/core/queries.ts
+++ b/packages/db/src/core/queries.ts
@@ -1,4 +1,4 @@
-import { type SQL } from 'drizzle-orm';
+import type { SQL } from 'drizzle-orm';
import { SQLiteAsyncDialect } from 'drizzle-orm/sqlite-core';
import { bold } from 'kleur/colors';
import {
diff --git a/packages/db/src/runtime/index.ts b/packages/db/src/runtime/index.ts
index 9e882843a..fb8579459 100644
--- a/packages/db/src/runtime/index.ts
+++ b/packages/db/src/runtime/index.ts
@@ -1,5 +1,5 @@
import { type ColumnBuilderBaseConfig, type ColumnDataType, sql } from 'drizzle-orm';
-import { type LibSQLDatabase } from 'drizzle-orm/libsql';
+import type { LibSQLDatabase } from 'drizzle-orm/libsql';
import {
type IndexBuilder,
type SQLiteColumnBuilderBase,