@types/validator
Advanced tools
Comparing version 13.1.0 to 13.1.1
@@ -320,2 +320,27 @@ // Type definitions for validator.js 13.1 | ||
interface IsDateOptions { | ||
/** | ||
* @default false | ||
*/ | ||
format?: string; | ||
/** | ||
* If strictMode is set to true, | ||
* the validator will reject inputs different from format. | ||
* | ||
* @default false | ||
*/ | ||
strictMode?: boolean; | ||
/** | ||
* `delimiters` is an array of allowed date delimiters | ||
* | ||
* @default ['/', '-'] | ||
*/ | ||
delimiters?: string[]; | ||
} | ||
/** | ||
* Check if the string is a valid date. | ||
*/ | ||
function isDate(str: string, options?: IsDateOptions): boolean; | ||
type DecimalLocale = FloatLocale; | ||
@@ -322,0 +347,0 @@ |
{ | ||
"name": "@types/validator", | ||
"version": "13.1.0", | ||
"version": "13.1.1", | ||
"description": "TypeScript definitions for validator.js", | ||
@@ -72,4 +72,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d34264838093ba6f36a43ab69ebac0ba4cff09dc988b96553c4a7b7025018d3d", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "6bca27e47f4f1b49c7697c0727c7b13342a554dc177ab4d34a247974ddf3b619", | ||
"typeScriptVersion": "3.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 24 Jun 2020 06:29:46 GMT | ||
* Last updated: Wed, 02 Dec 2020 11:16:33 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
53588
176
1605