Skip to content

Commit

Permalink
[types/validator] Add new supported UUID versions 1 and 2
Browse files Browse the repository at this point in the history
New UUID versions 1 and 2 are now supported since 13.0.7
(validatorjs/validator.js#1848)
  • Loading branch information
thefat32 committed May 5, 2023
1 parent 80908e3 commit 5a4a2c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/validator/index.d.ts
Expand Up @@ -1148,9 +1148,9 @@ declare namespace validator {
*/
function isUppercase(str: string): boolean;

type UUIDVersion = 3 | 4 | 5 | '3' | '4' | '5' | 'all';
type UUIDVersion = '1' | '2' | '3' | '4' | '5' | 'all' | 1 | 2 | 3 | 4 | 5;
/**
* Check if the string is a UUID (version 3, 4 or 5).
* Check if the string is a UUID (version 1, 2, 3, 4 or 5).
*
* @param [version="all"] - UUID version
*/
Expand Down

0 comments on commit 5a4a2c0

Please sign in to comment.