Re-added get(string):string to express

This commit is contained in:
yortus
2014-03-31 16:04:21 +08:00
parent 69bd32f4c1
commit daa12d74b1
+4
View File
@@ -143,6 +143,8 @@ 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;
@@ -175,6 +177,8 @@ 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;