Documentation
    Preparing search index...

    Type Alias SpreadArgument<T>

    SpreadArgument: BaseArgument<T> & {
        type: "spread";
        allowEmptyValue?: boolean;
        parse?: (input: T extends any[] ? T : [T]) => T;
    }

    Type for a spread argument

    Type Parameters

    • T extends any

    Type Declaration

    • type: "spread"
    • OptionalallowEmptyValue?: boolean

      Whether or not to allow empty values. When set to false, the validation will fail if the argument is provided an empty string

      Defaults to false

    • Optionalparse?: (input: T extends any[] ? T : [T]) => T