From aeb8fefd8bcd341b61055145b4b26a7da79dd436 Mon Sep 17 00:00:00 2001 From: James O'Cull Date: Tue, 29 Dec 2015 14:44:13 -0500 Subject: [PATCH] Add definition for request files --- restify/restify.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/restify/restify.d.ts b/restify/restify.d.ts index 47c56240c1..8baf5da2d1 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -16,6 +16,11 @@ declare module "restify" { family: string; address: string; } + + interface requestFileInterface { + path: string; + type: string; + } interface Request extends http.ServerRequest { header: (key: string, defaultValue?: string) => any; @@ -34,6 +39,7 @@ declare module "restify" { params: any; body?: any; //available when bodyParser plugin is used + files?: { [name: string]: requestFileInterface }; isSecure: () => boolean; }