From 4e315942f51e8156a6d141b16d4e030286943333 Mon Sep 17 00:00:00 2001 From: yortus Date: Mon, 31 Mar 2014 16:37:41 +0800 Subject: [PATCH] Moved get(string)=>sting to Application --- express/express.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/express/express.d.ts b/express/express.d.ts index 674975da82..d5fbbdaacf 100644 --- a/express/express.d.ts +++ b/express/express.d.ts @@ -143,8 +143,6 @@ declare module Express { all(path: string, ...callbacks: Function[]): void; - get(name: string): string; - get(name: string, ...handlers: RequestFunction[]): T; get(name: RegExp, ...handlers: RequestFunction[]): T; @@ -177,8 +175,6 @@ declare module Express { all(path: string, ...callbacks: Function[]): void; - get(name: string): string; - get(name: string, ...handlers: RequestFunction[]): Router; get(name: RegExp, ...handlers: RequestFunction[]): Router; @@ -1006,6 +1002,12 @@ declare module Express { */ 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 * based on the parent(s) that have