From 38b09ae303b3a8caeb684e1d0aa0021e87ce5f01 Mon Sep 17 00:00:00 2001 From: Nahuel Greco Date: Tue, 19 Jul 2016 21:26:01 -0300 Subject: [PATCH] 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 --- node/node.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/node/node.d.ts b/node/node.d.ts index 0934d1ebfb..08939492fd 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -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;