mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Allow Url type to be passed into setUrl() (#9008)
This commit is contained in:
committed by
Masahiro Wakame
parent
544a35a108
commit
e2de8d512a
4
hapi/hapi.d.ts
vendored
4
hapi/hapi.d.ts
vendored
@@ -12,6 +12,7 @@ declare module "hapi" {
|
||||
import http = require("http");
|
||||
import stream = require("stream");
|
||||
import Events = require("events");
|
||||
import url = require("url");
|
||||
|
||||
interface IDictionary<T> {
|
||||
[key: string]: T;
|
||||
@@ -1250,8 +1251,7 @@ declare module "hapi" {
|
||||
request.setUrl('/test');
|
||||
return reply.continue();
|
||||
});*/
|
||||
setUrl(url: string): void;
|
||||
|
||||
setUrl(url: string | url.Url): void;
|
||||
/** request.setMethod(method)
|
||||
|
||||
Available only in 'onRequest' extension methods.
|
||||
|
||||
Reference in New Issue
Block a user