-
Couldn't load subscription status.
- Fork 193
Open
Description
Just switched over to using this on a new project, and there's a typescript error coming out of this module, from lib/types.d.ts.
interface TableDefinition<Name extends string, Row> {
name: Name;
schema: string;
// FROM THIS LINE
columns: {[CName in keyof Row]: ColumnDefinition<CName, Row[CName]>};
dialect?: SQLDialects;
isTemporary?: boolean;
foreignKeys?: {
table: string,
columns: (keyof Row)[],
refColumns: string[],
onDelete?: 'restrict' | 'cascade' | 'no action' | 'set null' | 'set default';
onUpdate?: 'restrict' | 'cascade' | 'no action' | 'set null' | 'set default';
}
}as that keyof is inferred as 'string' | 'number' | 'symbol', and ColumnDefinition is expecting just a string for that generic.
I can solving it temporarily by telling typescript to ignore errors in node_modules, but that's not ideal.
lorenzleutgeb
Metadata
Metadata
Assignees
Labels
No labels