Merge pull request #14368 from cnjsstong/patch-1

Add missing `noCache` function for restify
This commit is contained in:
Zhengbo Li
2017-02-17 13:24:06 -08:00
committed by GitHub
+1
View File
@@ -300,6 +300,7 @@ interface HandlerTiming {
interface Response extends http.ServerResponse {
header: (key: string, value?: any) => any;
cache: (type?: any, options?: Object) => any;
noCache: () => any;
status: (code: number) => any;
send: (status?: any, body?: any, headers?: { [header: string]: string }) => any;
json: (status?: any, body?: any, headers?: { [header: string]: string }) => any;