db0 icon indicating copy to clipboard operation
db0 copied to clipboard

Type error while running examples/drizzle without any changes (runs perfectly)

Open amandesai01 opened this issue 8 months ago • 0 comments

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.
Screenshot 2024-06-04 at 10 19 27 PM

Additional context

No response

Logs

No response

amandesai01 avatar Jun 04 '24 16:06 amandesai01