Skip to content

EntitySchema

type EntitySchema<Schema> = ZodOutput<Schema>;

Utility type used to derive the type from the Zod schema definition. Mainly for internal use.

To get the schema type from an entity use Entity<E> instead.

Schema extends ZodObject