From 98105c7ad3dd708d5a2b89ed14983b95beb70002 Mon Sep 17 00:00:00 2001 From: picchi-lucas <97546801+picchi-lucas@users.noreply.github.com> Date: Thu, 4 May 2023 20:45:21 -0300 Subject: [PATCH] [types/validator] Add new supported UUID versions 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 925b1b6bdeaa9f..8f793d6c26ca56 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 */