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

    Type Alias Parser

    Parser: ParseFn

    Function type for parsing/preprocessing input values before validation. Parsers receive the raw input value and return a preprocessed version that will then be validated by the schema.

    const trimParser: Parser = (value) => {
    return typeof value === 'string' ? value.trim() : value
    }