Interface ArrayDeclarationOption

interface ArrayDeclarationOption {
    help: string;
    name: string;
    type: Array | PathArray | ModuleArray | GlobArray;
    configFileOnly?: boolean;
    defaultValue?: readonly string[];
    validate?: ((value) => void);
}

Hierarchy (view full)

Properties

help: string

The help text to be displayed to the user when --help is passed.

name: string

The option name.

The parameter type, used to convert user configuration values into the expected type. If not set, the type will be a string.

configFileOnly?: boolean

If set, this option will be omitted from --help, and attempting to specify it on the command line will produce an error.

defaultValue?: readonly string[]

If not specified defaults to an empty array.

validate?: ((value) => void)

An optional validation function that validates a potential value of this option. The function must throw an Error if the validation fails and should do nothing otherwise.

Type declaration

    • (value): void
    • An optional validation function that validates a potential value of this option. The function must throw an Error if the validation fails and should do nothing otherwise.

      Parameters

      • value: string[]

      Returns void

Generated using TypeDoc