@types/validator
Advanced tools
Comparing version 13.7.14 to 13.7.15
@@ -16,2 +16,3 @@ // Type definitions for validator.js 13.7 | ||
// Roman Babiak <https://github.com/Almost-Infinity> | ||
// Daniel Freire <https://github.com/dcfreire> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -1122,2 +1123,21 @@ | ||
interface IsTimeOptions { | ||
/** | ||
* 'hour24' will validate hours in 24 format and 'hour12' will validate hours in 12 format. | ||
* @default 'hour24' | ||
*/ | ||
hourFormat?: 'hour12' | 'hour24'; | ||
/** | ||
* 'default' will validate HH:MM format, 'withSeconds' will validate the HH:MM:SS format | ||
* | ||
* @default 'default' | ||
*/ | ||
mode?: 'default' | 'withSeconds'; | ||
} | ||
/** | ||
* Check if the string is a valid time. | ||
*/ | ||
function isTime(str: string, options?: IsTimeOptions): boolean; | ||
const isURL: typeof _isURL.default; | ||
@@ -1124,0 +1144,0 @@ type IsURLOptions = _isURL.IsURLOptions; |
{ | ||
"name": "@types/validator", | ||
"version": "13.7.14", | ||
"version": "13.7.15", | ||
"description": "TypeScript definitions for validator.js", | ||
@@ -72,2 +72,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator", | ||
"githubUsername": "Almost-Infinity" | ||
}, | ||
{ | ||
"name": "Daniel Freire", | ||
"url": "https://github.com/dcfreire", | ||
"githubUsername": "dcfreire" | ||
} | ||
@@ -84,4 +89,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "aa126194570fbaece450e66e6e207d35b00db0ddaab9bad6b53b1f567fafc8f3", | ||
"typeScriptVersion": "4.2" | ||
"typesPublisherContentHash": "66766b07522366ca074ab408c9167e1828aa6811c2f55c3cd6eea87593122e8a", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 13 Mar 2023 19:34:58 GMT | ||
* Last updated: Thu, 13 Apr 2023 19:32:45 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: `validator` | ||
# Credits | ||
These definitions were written by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu), [Ayman Nedjmeddine](https://github.com/IOAyman), [Louay Alakkad](https://github.com/louy), [Bonggyun Lee](https://github.com/deptno), [Naoto Yokoyama](https://github.com/builtinnya), [Philipp Katz](https://github.com/qqilihq), [Jace Warren](https://github.com/keatz55), [Munif Tanjim](https://github.com/MunifTanjim), [Vlad Poluch](https://github.com/vlapo), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Matteo Nista](https://github.com/Mattewn99), and [Roman Babiak](https://github.com/Almost-Infinity). | ||
These definitions were written by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu), [Ayman Nedjmeddine](https://github.com/IOAyman), [Louay Alakkad](https://github.com/louy), [Bonggyun Lee](https://github.com/deptno), [Naoto Yokoyama](https://github.com/builtinnya), [Philipp Katz](https://github.com/qqilihq), [Jace Warren](https://github.com/keatz55), [Munif Tanjim](https://github.com/MunifTanjim), [Vlad Poluch](https://github.com/vlapo), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Matteo Nista](https://github.com/Mattewn99), [Roman Babiak](https://github.com/Almost-Infinity), and [Daniel Freire](https://github.com/dcfreire). |
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
68635
189
2350