mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Merge pull request #19427 from TheOnlyRew/patch-1
[Joi] Add missing Joi.string().uuid()
This commit is contained in:
5
types/joi/index.d.ts
vendored
5
types/joi/index.d.ts
vendored
@@ -519,6 +519,11 @@ export interface StringSchema extends AnySchema<StringSchema> {
|
||||
* Requires the string value to be a valid GUID.
|
||||
*/
|
||||
guid(options?: GuidOptions): StringSchema;
|
||||
|
||||
/**
|
||||
* Alias for `guid` -- Requires the string value to be a valid GUID
|
||||
*/
|
||||
uuid(options?: GuidOptions): StringSchema;
|
||||
|
||||
/**
|
||||
* Requires the string value to be a valid hexadecimal string.
|
||||
|
||||
Reference in New Issue
Block a user