From 61409c12dfa324f923972297037d54cf54f55c9f Mon Sep 17 00:00:00 2001 From: Drew Pirrone-Brusse Date: Tue, 29 Aug 2017 12:39:23 -0400 Subject: [PATCH] Add missing Joi.string().uuid() As per the [Joi API docs](https://github.com/hapijs/joi/blob/v10.5.0/API.md#stringguid---aliases-uuid) `uuid()` is an alias for `guid()`, so this is essentially a one-liner. --- types/joi/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/joi/index.d.ts b/types/joi/index.d.ts index 0772c82fbe..4ae81db885 100644 --- a/types/joi/index.d.ts +++ b/types/joi/index.d.ts @@ -519,6 +519,11 @@ export interface StringSchema extends AnySchema { * 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.