Documentation
    Preparing search index...

    Type Alias StringArgument<T>

    StringArgument: BaseArgument<T> & {
        type: "string";
        allowEmptyValue?: boolean;
        parse?: (input: T) => T;
    }

    Type for a string argument

    Type Parameters

    • T

    Type Declaration

    • type: "string"
    • 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) => T