From d83c38e33756f0d4865de5cd34beffb399d595cd Mon Sep 17 00:00:00 2001 From: Brian Faust Date: Tue, 11 Dec 2018 08:55:38 +0200 Subject: [PATCH] Add the `unsafe` method to the NumberSchema of Joi --- types/joi/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/joi/index.d.ts b/types/joi/index.d.ts index 096847a82c..1af519dd5a 100644 --- a/types/joi/index.d.ts +++ b/types/joi/index.d.ts @@ -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.