mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Add definition for request files
This commit is contained in:
Vendored
+6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user