Merge pull request #18777 from IzikLisbon/master

isUUID in Sequelize and Validator
This commit is contained in:
Andrew Casey
2017-08-09 10:46:04 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;