From 1f81d75c3ff24f14800a8e61349da668552c5873 Mon Sep 17 00:00:00 2001 From: Ragesh Krishna Date: Sun, 30 Mar 2014 17:30:29 +0530 Subject: [PATCH] Fixes #1636: Add get(setting) definition on express.Application --- express/express.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/express/express.d.ts b/express/express.d.ts index 243aa41d4d..0fea845144 100644 --- a/express/express.d.ts +++ b/express/express.d.ts @@ -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