From 6ae08bfbab7fd9443fb5bfdadef14c4df6fc8d4c Mon Sep 17 00:00:00 2001 From: James O'Cull Date: Tue, 29 Dec 2015 14:30:24 -0500 Subject: [PATCH] Support optional headers in response send / json calls --- restify/restify.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restify/restify.d.ts b/restify/restify.d.ts index c523810eec..47c56240c1 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -41,8 +41,8 @@ declare module "restify" { header: (key: string, value ?: any) => any; cache: (type?: any, options?: Object) => any; status: (code: number) => any; - send: (status?: any, body?: any) => any; - json: (status?: any, body?: any) => any; + send: (status?: any, body?: any, headers?: { [header: string]: string }) => any; + json: (status?: any, body?: any, headers?: { [header: string]: string }) => any; code: number; contentLength: number; charSet(value: string): void;