[@types/hapi__joi] update domain inside UriOptions (#39246)

* change type for domain inside UriOptions from boolean to DomainOptions

* add test
This commit is contained in:
Jonas Liebert
2019-10-22 13:36:21 -07:00
committed by Wesley Wigham
parent 08e1da0136
commit a29b971252
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -110,6 +110,7 @@ uriOpts = { scheme: str };
uriOpts = { scheme: exp };
uriOpts = { scheme: strArr };
uriOpts = { scheme: expArr };
uriOpts = { domain: domainOpts };
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
+1 -1
View File
@@ -351,7 +351,7 @@ declare namespace Joi {
/**
* Validate the domain component using the options specified in `string.domain()`.
*/
domain?: boolean;
domain?: DomainOptions;
}
interface DataUriOptions {