Skip to content

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

@amandesai01

Description

@amandesai01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions