@vinejs/vine - v4.2.0
    Preparing search index...

    Class MetaModifier<Schema>

    Base interface for all constructable schema types in Vine. Defines the contract that all schema types must implement for type inference, compilation, and validation.

    class StringSchema implements ConstructableSchema<string | undefined, string, string> {
    [ITYPE]: string | undefined
    [OTYPE]: string
    [COTYPE]: string

    [PARSE](propertyName: string, refs: RefsStore, options: ParserOptions) {
    return { type: 'literal', subtype: 'string' }
    }

    clone() { return new StringSchema() }
    }

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    "[ITYPE]": Schema[typeof ITYPE]

    Define the input type of the schema

    "[OTYPE]": Schema[typeof OTYPE]

    The output value of the field. The property points to a type only and not the real value.

    "[COTYPE]": Schema[typeof COTYPE]

    Type marker for camelCase output type inference

    Accessors

    Methods