Moved get(string)=>sting to Application

This commit is contained in:
yortus
2014-03-31 16:37:41 +08:00
parent daa12d74b1
commit 4e315942f5
+6 -4
View File
@@ -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