From fcddec02f8b510881e477033124da4d594dafb45 Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Thu, 25 Jul 2024 11:41:58 +0100 Subject: [PATCH] Fixed build --- drizzle-orm/src/singlestore-core/table.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drizzle-orm/src/singlestore-core/table.ts b/drizzle-orm/src/singlestore-core/table.ts index f27ea0eff..bed4bc7a4 100644 --- a/drizzle-orm/src/singlestore-core/table.ts +++ b/drizzle-orm/src/singlestore-core/table.ts @@ -66,7 +66,7 @@ export type AnySingleStoreTable = {}> = | SingleStoreColumnstoreTable> | SingleStoreRowstoreTable>; -export type SingleStoreTableWithColumns = +export type SingleStoreTableWithColumns = & (SingleStoreTable) & { [Key in keyof T['columns']]: T['columns'][Key]; @@ -88,12 +88,12 @@ export function singlestoreTableWithSchema< | undefined, schema: TSchemaName, baseName = name, -): SingleStoreTableWithColumns; dialect: 'singlestore'; -}> { +}, TTableType> { let rawTable; switch (tableType) { case 'columnstore': { @@ -158,12 +158,12 @@ export interface SingleStoreTableFn< extraConfig?: ( self: BuildColumns, ) => SinglestoreTableTypeTypes[TTableType]['extraconfig'], - ): SingleStoreTableWithColumns; dialect: 'singlestore'; - }>; + }, TTableType>; } export const singlestoreTable: SingleStoreTableFn<'columnstore'> = (name, columns, extraConfig) => {