Options could be a string

This commit is contained in:
Stanley Goldman
2015-11-20 11:48:28 -05:00
parent 1c5ba17bf0
commit 59e1cd247a

2
hapi/hapi.d.ts vendored
View File

@@ -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.*/