@vinejs/vine - v4.0.0-next.1
    Preparing search index...

    Type Alias Infer<Schema>

    Infer: Schema[typeof OTYPE]

    Utility type to infer the output type of a schema. Extracts the validated output type from a schema definition.

    Type Parameters

    • Schema extends { "[OTYPE]": any }

      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 }