From 88e0b044d0c3a16c988509feec336f28c2ac83d0 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Thu, 15 Feb 2024 12:26:20 -0500 Subject: [PATCH] fix: use FieldsConfig for Table generic --- packages/db/src/runtime/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/db/src/runtime/types.ts b/packages/db/src/runtime/types.ts index 5d2c985f72..5bff0ad1d1 100644 --- a/packages/db/src/runtime/types.ts +++ b/packages/db/src/runtime/types.ts @@ -1,6 +1,6 @@ -import type { ColumnDataType, ColumnBaseConfig, SQLChunk } from 'drizzle-orm'; +import type { ColumnDataType, ColumnBaseConfig } from 'drizzle-orm'; import type { SQLiteColumn, SQLiteTableWithColumns } from 'drizzle-orm/sqlite-core'; -import type { DBField } from '../core/types.js'; +import type { DBField, FieldsConfig } from '../core/types.js'; type GeneratedConfig = Pick< ColumnBaseConfig, @@ -76,7 +76,7 @@ export type Column = T ext export type Table< TTableName extends string, - TFields extends Record>, + TFields extends FieldsConfig, > = SQLiteTableWithColumns<{ name: TTableName; schema: undefined;