mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-26 06:05:54 +08:00
Merge pull request #1939 from rageshkrishna/fix_1636
Fixes #1636: Add get(setting) definition on express.Application
This commit is contained in:
6
express/express.d.ts
vendored
6
express/express.d.ts
vendored
@@ -978,6 +978,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