Merge pull request #1939 from rageshkrishna/fix_1636

Fixes #1636: Add get(setting) definition on express.Application
This commit is contained in:
Basarat Ali Syed
2014-04-12 01:50:05 +10:00

View File

@@ -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