Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoacastro committed Jul 25, 2024
1 parent fba59c0 commit fcddec0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drizzle-orm/src/singlestore-core/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export type AnySingleStoreTable<TPartial extends Partial<TableConfig> = {}> =
| SingleStoreColumnstoreTable<UpdateTableConfig<TableConfig, TPartial>>
| SingleStoreRowstoreTable<UpdateTableConfig<TableConfig, TPartial>>;

export type SingleStoreTableWithColumns<TTableType extends SinglestoreTableTypes, T extends TableConfig> =
export type SingleStoreTableWithColumns<T extends TableConfig, TTableType extends SinglestoreTableTypes = SinglestoreTableTypes> =
& (SingleStoreTable<TTableType, T>)
& {
[Key in keyof T['columns']]: T['columns'][Key];
Expand All @@ -88,12 +88,12 @@ export function singlestoreTableWithSchema<
| undefined,
schema: TSchemaName,
baseName = name,
): SingleStoreTableWithColumns<TTableType, {
): SingleStoreTableWithColumns<{
name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap, 'singlestore'>;
dialect: 'singlestore';
}> {
}, TTableType> {
let rawTable;
switch (tableType) {
case 'columnstore': {
Expand Down Expand Up @@ -158,12 +158,12 @@ export interface SingleStoreTableFn<
extraConfig?: (
self: BuildColumns<TTableName, TColumnsMap, 'singlestore'>,
) => SinglestoreTableTypeTypes[TTableType]['extraconfig'],
): SingleStoreTableWithColumns<TTableType, {
): SingleStoreTableWithColumns<{
name: TTableName;
schema: TSchemaName;
columns: BuildColumns<TTableName, TColumnsMap, 'singlestore'>;
dialect: 'singlestore';
}>;
}, TTableType>;
}

export const singlestoreTable: SingleStoreTableFn<'columnstore'> = (name, columns, extraConfig) => {
Expand Down

0 comments on commit fcddec0

Please sign in to comment.