@types/validator
Advanced tools
Comparing version 13.7.10 to 13.7.11
@@ -596,3 +596,19 @@ // Type definitions for validator.js 13.7 | ||
interface IsIMEIOptions { | ||
/** | ||
* This value is `false` by default. Set to `true` to allow IMEI with hyphens. | ||
*/ | ||
allow_hyphens?: boolean | undefined; | ||
} | ||
/** | ||
* Check if the string is a valid IMEI. | ||
* Non-hyphenated (`###############`) only is supported by default. | ||
* Use the `options` param to enable hyphenated (`##-######-######-#`) support. | ||
* | ||
* @param [options] - Options | ||
*/ | ||
function isIMEI(str: string, options?: IsIMEIOptions): boolean; | ||
/** | ||
* Check if the string is in a array of allowed values. | ||
@@ -599,0 +615,0 @@ * |
{ | ||
"name": "@types/validator", | ||
"version": "13.7.10", | ||
"version": "13.7.11", | ||
"description": "TypeScript definitions for validator.js", | ||
@@ -78,4 +78,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "bcafc3ecaf07e59448517db1c76b423c79c33520c012a0b3282a95a8a6d001ca", | ||
"typeScriptVersion": "4.1" | ||
"typesPublisherContentHash": "94653db8f881c404306f6b0f38d29c6bd51e4f237425eae8be0fd3c9c44812b9", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 30 Oct 2022 13:32:41 GMT | ||
* Last updated: Tue, 24 Jan 2023 01:32:33 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `validator` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67139
187
2319