mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-10 04:00:10 +00:00
Support optional headers in response send / json calls
This commit is contained in:
4
restify/restify.d.ts
vendored
4
restify/restify.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user