DT
Drizzle Team•12mo ago
h1dddd

SQLite cyclic reference ant types inference

Have a simplest setup here and TS fails to infer types 😦 Deleting either line #14 or #19 fixes the problem. Should I explicitly set return type for reference callback? Or there is an easier way?
No description
5 Replies
h1dddd
h1ddddOP•12mo ago
hmm.. nothing? 😦 here is an isolated bug – https://codesandbox.io/p/devbox/47pz87?file=%2Fschema_broken.ts%3A20%2C19
Andrii Sherman
Andrii Sherman•12mo ago
Drizzle ORM - Indexes & Constraints
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Andrii Sherman
Andrii Sherman•12mo ago
We have a few explanations here
Andrii Sherman
Andrii Sherman•12mo ago
No description
Andrii Sherman
Andrii Sherman•12mo ago
Try to add AnyPgColumn type to reference callback Or check more examples by a link I’ve sent you

Did you find this page helpful?