mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
node.d.ts: added http.ServerResponse.setTimeout signature (#10135)
Added missing `http.ServerResponse.setTimeout` signature. The `setTimeout` method was added in node v0.9.12, see https://nodejs.org/api/http.html#http_response_settimeout_msecs_callback
This commit is contained in:
committed by
Mohamed Hegazy
parent
3c935c7abc
commit
38b09ae303
1
node/node.d.ts
vendored
1
node/node.d.ts
vendored
@@ -599,6 +599,7 @@ declare module "http" {
|
||||
statusMessage: string;
|
||||
headersSent: boolean;
|
||||
setHeader(name: string, value: string | string[]): void;
|
||||
setTimeout(msecs: number, callback: Function): ServerResponse;
|
||||
sendDate: boolean;
|
||||
getHeader(name: string): string;
|
||||
removeHeader(name: string): void;
|
||||
|
||||
Reference in New Issue
Block a user