NEGATIVE_INTEGERconstant

Sugar instance of NumberSchema for a negative integer (excluding zero). Equivalent to new NumberSchema({ step: 1, min: Number.MIN_SAFE_INTEGER, max: -1 }).

Examples

NEGATIVE_INTEGER.validate(-3); // Returns -3