mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 06:50:19 +00:00
Merge pull request #18777 from IzikLisbon/master
isUUID in Sequelize and Validator
This commit is contained in:
Vendored
+1
-1
@@ -4765,7 +4765,7 @@ declare namespace sequelize {
|
||||
/**
|
||||
* only allow uuids
|
||||
*/
|
||||
isUUID?: number | { msg: string, args: number };
|
||||
isUUID?: 3|4|5|"3"|"4"|"5"|"all" | { msg: string, args: number };
|
||||
|
||||
/**
|
||||
* only allow date strings
|
||||
|
||||
Vendored
+1
-1
@@ -4661,7 +4661,7 @@ declare namespace sequelize {
|
||||
/**
|
||||
* only allow uuids
|
||||
*/
|
||||
isUUID?: number | { msg: string, args: number };
|
||||
isUUID?: 3|4|5|"3"|"4"|"5"|"all" | { msg: string, args: number };
|
||||
|
||||
/**
|
||||
* only allow date strings
|
||||
|
||||
Vendored
+1
-1
@@ -156,7 +156,7 @@ declare namespace ValidatorJS {
|
||||
isURL(str: string, options?: IsURLOptions): boolean;
|
||||
|
||||
// check if the string is a UUID. Must be one of ['3', '4', '5', 'all'], default is all.
|
||||
isUUID(str: string, version?: string | number): boolean;
|
||||
isUUID(str: string, version?: 3|4|5|"3"|"4"|"5"|"all"): boolean;
|
||||
|
||||
// check if the string is uppercase.
|
||||
isUppercase(str: string): boolean;
|
||||
|
||||
Reference in New Issue
Block a user