From a29b9712525b4e802c589e71fec61aecc0eb21fa Mon Sep 17 00:00:00 2001 From: Jonas Liebert Date: Tue, 22 Oct 2019 22:36:21 +0200 Subject: [PATCH] [@types/hapi__joi] update domain inside UriOptions (#39246) * change type for domain inside UriOptions from boolean to DomainOptions * add test --- types/hapi__joi/hapi__joi-tests.ts | 1 + types/hapi__joi/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/hapi__joi/hapi__joi-tests.ts b/types/hapi__joi/hapi__joi-tests.ts index 89a459b5b1..7ad8b18905 100644 --- a/types/hapi__joi/hapi__joi-tests.ts +++ b/types/hapi__joi/hapi__joi-tests.ts @@ -110,6 +110,7 @@ uriOpts = { scheme: str }; uriOpts = { scheme: exp }; uriOpts = { scheme: strArr }; uriOpts = { scheme: expArr }; +uriOpts = { domain: domainOpts }; // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- diff --git a/types/hapi__joi/index.d.ts b/types/hapi__joi/index.d.ts index 71b368c548..7a2203bc70 100644 --- a/types/hapi__joi/index.d.ts +++ b/types/hapi__joi/index.d.ts @@ -351,7 +351,7 @@ declare namespace Joi { /** * Validate the domain component using the options specified in `string.domain()`. */ - domain?: boolean; + domain?: DomainOptions; } interface DataUriOptions {