From 36ce4b68faaeda516e9586472a594c4f4576980e Mon Sep 17 00:00:00 2001 From: Prashant Tiwari Date: Sat, 9 Jul 2016 14:51:05 +0530 Subject: [PATCH] Fix `request.raw.req` type Per the hapi [code](https://github.com/hapijs/hapi/blob/master/lib/request.js) and [documentation](http://hapijs.com/api#request-object) the correct type for the raw http request object `request.raw.req` is actually `http.IncomingMessage` and not `http.ClientRequest`. --- hapi/hapi.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index 2867dd7de9..4a41a8eb84 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -964,7 +964,7 @@ declare module "hapi" { payload: string; rawPayload: Buffer; raw: { - req: http.ClientRequest; + req: http.IncomingMessage; res: http.ServerResponse }; result: string; @@ -1199,7 +1199,7 @@ declare module "hapi" { query: any; /** an object containing the Node HTTP server objects. Direct interaction with these raw objects is not recommended.*/ raw: { - req: http.ClientRequest; + req: http.IncomingMessage; res: http.ServerResponse; }; /** the route public interface.*/