Type Alias: InferInput<T>
InferInput<
T> =TextendsZodSchema<unknown,unknown, infer I> ?I:TextendsZodType<unknown,unknown, infer I> ?I:unknown
Defined in: packages/core/src/type-utils.ts:36
Extract the input type from a Zod schema (before transformations)
Type Parameters
T
T
Example
type MySchema = z.string().transform(s => parseInt(s));
type Input = InferInput<MySchema>; // string
type Output = InferOutput<MySchema>; // number