mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
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`.
This commit is contained in:
Vendored
+2
-2
@@ -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.*/
|
||||
|
||||
Reference in New Issue
Block a user