mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #2793 from yisyang/patch-1
Update express.d.ts set/get types
This commit is contained in:
Vendored
+5
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user