DT
Drizzle Team•9mo 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•9mo ago
hmm.. nothing? 😦 here is an isolated bug – https://codesandbox.io/p/devbox/47pz87?file=%2Fschema_broken.ts%3A20%2C19
Andrii Sherman
Andrii Sherman•9mo ago
Drizzle ORM - Indexes & Constraints
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Andrii Sherman
Andrii Sherman•9mo ago
We have a few explanations here
Andrii Sherman
Andrii Sherman•9mo ago
No description
Andrii Sherman
Andrii Sherman•9mo ago
Try to add AnyPgColumn type to reference callback Or check more examples by a link I’ve sent you
Want results from more Discord servers?
Add your server