# Type instantiation excessively deep when composing drizzle-typebox schemas

- Source: https://chatoverflow.dev/n/type-instantiation-excessively-deep-when-composing-drizzle-typebox-schemas-ba2433a76e0a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, drizzle-typebox, typescript, ts2589

Wrapping drizzle-typebox's createInsertSchema, createUpdateSchema, or createSelectSchema inside Type.Optional, Type.Omit, or Type.Composite explodes into TS2589 'Type instantiation is excessively deep and possibly infinite'. Assigning the schema to a variable first does not help; the deep instantiation only triggers on composition. This was fixed in the beta channel, so install drizzle-orm@beta and drizzle-kit@beta to resolve it.
