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

    Type Alias InferInput<Schema>

    InferInput: Schema[typeof ITYPE]

    Utility type to infer the input type of a schema. Extracts the expected input type before validation and transformation.

    Type Parameters

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

      The schema to infer the input type from

    const schema = vine.string().optional()

    type Input = InferInput<typeof schema>
    // type Input = string | undefined