mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 01:31:45 +00:00
Add the unsafe method to the NumberSchema of Joi
This commit is contained in:
Vendored
+5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user