Add the unsafe method to the NumberSchema of Joi

This commit is contained in:
Brian Faust
2018-12-11 08:55:38 +02:00
committed by GitHub
parent 8fbdf7311a
commit d83c38e337
+5
View File
@@ -504,6 +504,11 @@ export interface NumberSchema extends AnySchema {
*/
integer(): this;
/**
* Allows the number to be outside of JavaScript's safety range (Number.MIN_SAFE_INTEGER & Number.MAX_SAFE_INTEGER).
*/
unsafe(enabled: boolean): this;
/**
* Specifies the maximum number of decimal places where:
* @param limit - the maximum number of decimal places allowed.