Skip to main content

Type Alias: InferSchemaOutput<T>

InferSchemaOutput<T> = T extends undefined ? string : T extends object ? Output : T extends ZodType<infer Output, any, any> ? Output : T

Defined in: packages/core/src/types.ts:171

The value a schema produces. No schema (undefined) means a string response; a type that is not a schema passes through as-is.

Type Parameters​

T​

T