Merge pull request #2793 from yisyang/patch-1

Update express.d.ts set/get types
This commit is contained in:
Masahiro Wakame
2014-09-15 22:56:12 +09:00
+5 -2
View File
@@ -833,15 +833,18 @@ declare module "express" {
* app.set('foo', 'bar');
* app.get('foo');
* // => "bar"
* app.set('foo', ['bar', 'baz']);
* app.get('foo');
* // => ["bar", "baz"]
*
* Mounted servers inherit their parent server's settings.
*
* @param setting
* @param val
*/
set(setting: string, val: string): Application;
set(setting: string, val: any): Application;
get: {
(name: string): string; // Getter
(name: string): any; // Getter
(name: string, ...handlers: RequestHandler[]): Application;
(name: RegExp, ...handlers: RequestHandler[]): Application;
};