Infers the TypeScript type from a SchemaInput.
type A = InferFromSchemaInput<z.ZodString>; // stringtype B = InferFromSchemaInput<{ name: z.ZodString }>; // { name: string } Copy
type A = InferFromSchemaInput<z.ZodString>; // stringtype B = InferFromSchemaInput<{ name: z.ZodString }>; // { name: string }
Infers the TypeScript type from a SchemaInput.