mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[@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:
committed by
Wesley Wigham
parent
08e1da0136
commit
a29b971252
@@ -110,6 +110,7 @@ uriOpts = { scheme: str };
|
||||
uriOpts = { scheme: exp };
|
||||
uriOpts = { scheme: strArr };
|
||||
uriOpts = { scheme: expArr };
|
||||
uriOpts = { domain: domainOpts };
|
||||
|
||||
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
||||
|
||||
|
||||
2
types/hapi__joi/index.d.ts
vendored
2
types/hapi__joi/index.d.ts
vendored
@@ -351,7 +351,7 @@ declare namespace Joi {
|
||||
/**
|
||||
* Validate the domain component using the options specified in `string.domain()`.
|
||||
*/
|
||||
domain?: boolean;
|
||||
domain?: DomainOptions;
|
||||
}
|
||||
|
||||
interface DataUriOptions {
|
||||
|
||||
Reference in New Issue
Block a user