Update express.d.ts set/get types

Express set/get actually allows any types, as seen from paragraphs directly under Settings on official docs at http://expressjs.com/api
This commit is contained in:
Scott Yang
2014-09-07 22:54:08 -07:00
parent eebb0aaa69
commit 15f02725f5
+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;
};