Documentation
    Preparing search index...

    Type Alias StringFlag<T>

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

    String flag

    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 flag is mentioned but no value is provided

      Defaults to false

    • Optionalparse?: (input: T) => T