From 00ed88bf4a02e6c679fd4c439b0de550c2cc01aa Mon Sep 17 00:00:00 2001 From: Lucas Picchi Date: Thu, 4 May 2023 21:06:06 -0300 Subject: [PATCH] [types/validator] Add new supported UUID versions 1 and 2 New UUID versions 1 and 2 are now supported since 13.0.7 (https://github.com/validatorjs/validator.js/pull/1848) --- types/validator/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/validator/index.d.ts b/types/validator/index.d.ts index 925b1b6bdeaa9f6..8f793d6c26ca56e 100644 --- a/types/validator/index.d.ts +++ b/types/validator/index.d.ts @@ -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 */