Utility type to infer the output type of a schema. Extracts the validated output type from a schema definition.
The schema to infer the type from
const userSchema = vine.object({ name: vine.string(), age: vine.number()})type User = Infer<typeof userSchema>// type User = { name: string; age: number } Copy
const userSchema = vine.object({ name: vine.string(), age: vine.number()})type User = Infer<typeof userSchema>// type User = { name: string; age: number }
Utility type to infer the output type of a schema. Extracts the validated output type from a schema definition.