mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-30 08:54:30 +08:00
Options could be a string
This commit is contained in:
2
hapi/hapi.d.ts
vendored
2
hapi/hapi.d.ts
vendored
@@ -897,7 +897,7 @@ declare module "hapi" {
|
||||
|
||||
|
||||
export interface IServerInject {
|
||||
(options: {
|
||||
(options: string | {
|
||||
/** the request HTTP method (e.g. 'POST'). Defaults to 'GET'.*/
|
||||
method: string;
|
||||
/** the request URL. If the URI includes an authority (e.g. 'example.com:8080'), it is used to automatically set an HTTP 'Host' header, unless one was specified in headers.*/
|
||||
|
||||
Reference in New Issue
Block a user