Interface NumberConfigOptions

NumberConfigOptions may be used to constrain the set of legal values a number config value may contain.

interface NumberConfigOptions {
    max?: number;
    min?: number;
}

Properties

Properties

max?: number

The maximum number value, inclusive. If the number is greater than this, a ConfigRangeError is thrown.

min?: number

The minimum number value, inclusive. If the number is less than this, a ConfigRangeError is thrown.

Generated using TypeDoc