TypeDoc API - v0.28.2

    Interface NumberDeclarationOption

    interface NumberDeclarationOption {
        help: () => string;
        name: string;
        type: Number;
        configFileOnly?: boolean;
        defaultValue?: number;
        maxValue?: number;
        minValue?: number;
        validate?: (value: number) => void;
    }

    Hierarchy (View Summary, Expand)

    Index

    Properties

    help: () => string

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

    This may be a string, which will be presented directly, or a function, which will be called so that option help can be translated into the user specified locale.

    name: string

    The option name.

    type: Number

    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?: number

    If not specified defaults to 0.

    maxValue?: number

    Highest possible value.

    minValue?: number

    Lowest possible value.

    validate?: (value: number) => 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.

    MMNEPVFCICPMFPCPTTAAATR