SchemaInfer<TSchema>
ts
type SchemaInfer<TSchema> = TSchema extends $ZodType ? ZodOutput<TSchema> : TSchema extends JSONSchema ? any : undefined;The TypeScript type a schema describes: inferred for Zod, any for JSON Schema (annotate it with FromSchema).
Type Parameters
TSchema
TSchema extends Schema