mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Fixes #1636: Add get(setting) definition on express.Application
This commit is contained in:
Vendored
+6
@@ -967,6 +967,12 @@ declare module "express" {
|
||||
* @param val
|
||||
*/
|
||||
set (setting: string, val: string): Application;
|
||||
|
||||
get(name: string): string;
|
||||
|
||||
get(name: string, ...handlers: RequestFunction[]): Application;
|
||||
|
||||
get(name: RegExp, ...handlers: RequestFunction[]): Application;
|
||||
|
||||
/**
|
||||
* Return the app's absolute pathname
|
||||
|
||||
Reference in New Issue
Block a user