Skip to content

EncodedEntitySchema

type EncodedEntitySchema<Schema> = ZodInput<Schema>;

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

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

Schema extends ZodObject