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?
5 Replies
hmm.. nothing? 😦
here is an isolated bug – https://codesandbox.io/p/devbox/47pz87?file=%2Fschema_broken.ts%3A20%2C19
Drizzle ORM - Indexes & Constraints
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
We have a few explanations here
Try to add AnyPgColumn type to reference callback
Or check more examples by a link I’ve sent you