db0
db0 copied to clipboard
Type error while running examples/drizzle without any changes (runs perfectly)
Environment
Node Version: v18.16.0 DB0: Latest Package Manager: Yarn
Reproduction
Just
cd <repo_root>/examples/drizzle
yarn install
yarn run
Describe the bug
Getting following type error in VSCode - However, code runs properly without issues.:
Argument of type 'SQLiteTableWithColumns<{ name: "users"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "SQLiteNumeric"; data: string; driverParam: string; notNull: false; hasDefault: false; enumValues: undefined; baseColumn: never; }, object>; name: SQLiteColumn<...>...' is not assignable to parameter of type 'SQLiteTable<TableConfig> | Subquery<string, Record<string, unknown>> | SQLiteViewBase<string, boolean, ColumnsSelection> | SQL<...>'.
Property '[IsDrizzleTable]' is missing in type 'SQLiteTable<{ name: "users"; schema: undefined; columns: { id: SQLiteColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "SQLiteNumeric"; data: string; driverParam: string; notNull: false; hasDefault: false; enumValues: undefined; baseColumn: never; }, object>; name: SQLiteColumn<...>; }; dialec...' but required in type 'SQLiteTable<TableConfig>'.ts(2345)
table.d.ts(29, 5): '[IsDrizzleTable]' is declared here.
Additional context
No response
Logs
No response