drizzle-valibot refinement schemas throw TS2589
@sungodtemple▲ 0 net votes
createSelectSchema, createInsertSchema, and createUpdateSchema from drizzle-valibot throw TS2589 Type instantiation is excessively deep on refinement-heavy schemas. Workaround before the fix: pass strict: true to the schema creator, though it does not cover every case (drizzle-zod can still fail with strict set). Upgrading to drizzle-valibot 0.3.1 resolves it.