Merge branch 'master' of github.com:vilic/DefinitelyTyped into vilic-master

This commit is contained in:
vvakame
2014-08-23 15:03:46 +09:00
+25 -2
View File
@@ -485,8 +485,12 @@ declare module "express" {
*
* Options:
*
* - `maxAge` defaulting to 0
* - `root` root directory for relative filenames
* - `maxAge` defaulting to 0 (can be string converted by `ms`)
* - `root` root directory for relative filenames
* - `headers` object of headers to serve with file
* - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them
*
* Other options are passed along to `send`.
*
* Examples:
*
@@ -507,6 +511,16 @@ declare module "express" {
* }
* });
* });
*
* @api public
*/
sendFile(path: string): void;
sendFile(path: string, options: any): void;
sendFile(path: string, fn: Errback): void;
sendFile(path: string, options: any, fn: Errback): void;
/**
* deprecated, use sendFile instead.
*/
sendFile(path: string): void;
sendFile(path: string, options: any): void;
@@ -514,8 +528,17 @@ declare module "express" {
sendFile(path: string, options: any, fn: Errback): void;
sendfile(path: string): void;
/**
* deprecated, use sendFile instead.
*/
sendfile(path: string, options: any): void;
/**
* deprecated, use sendFile instead.
*/
sendfile(path: string, fn: Errback): void;
/**
* deprecated, use sendFile instead.
*/
sendfile(path: string, options: any, fn: Errback): void;
/**