Interface ValidateNumberOptions

interface ValidateNumberOptions {
    enum?: number[];
    max?: number | NativeDate | [number, string] | [NativeDate, string] | readonly [number, string] | readonly [NativeDate, string];
    min?: number | NativeDate | [number, string] | [NativeDate, string] | readonly [number, string] | readonly [NativeDate, string];
}

Properties

Properties

enum?: number[]

Only allow Values from the enum

max?: number | NativeDate | [number, string] | [NativeDate, string] | readonly [number, string] | readonly [NativeDate, string]

Only allow numbers lower than this

min?: number | NativeDate | [number, string] | [NativeDate, string] | readonly [number, string] | readonly [NativeDate, string]

Only allow numbers that are higher than this