mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Support optional headers in response send / json calls
This commit is contained in:
Vendored
+2
-2
@@ -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