Options for float validation.

interface IsFloatOptions {
    gt?: number;
    lt?: number;
    max?: number;
    min?: number;
}

Properties

Properties

gt?: number

Value must be greater than this.

lt?: number

Value must be less than this.

max?: number

Maximum value (inclusive).

min?: number

Minimum value (inclusive).