TypeScript Error

I'm running into a TypeScript issue with Drizzle ORM & SingleStore integration. Issue: I'm trying to define a table using singlestoreTable from "drizzle-orm/singlestore-core", but TypeScript is throwing types-related errors. Here's my schema: import { int, text, singlestoreTable, index } from "drizzle-orm/singlestore-core"; export const files = singlestoreTable( "files_table", { id: int("id").primaryKey().autoincrement(), name: text("name"), size: int("size"), url: text("url"), parent: int("parent"), }, (t) => { return [index("parent_index").on(t.parent)]; } ); Errors: TypeScript throws "Unsafe assignment of an error typed value"
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?