mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
use takes multiple request handlers now
This commit is contained in:
Vendored
+4
-6
@@ -89,12 +89,10 @@ declare module "express" {
|
||||
|
||||
route(path: string): IRoute;
|
||||
|
||||
use(server: Application): Application;
|
||||
use(handler: RequestHandler): Application;
|
||||
use(handler: ErrorRequestHandler): Application;
|
||||
use(path: string, server: Application): Application;
|
||||
use(path: string, handler: RequestHandler): Application;
|
||||
use(path: string, handler: ErrorRequestHandler): Application;
|
||||
use(...handler: RequestHandler[]): T;
|
||||
use(handler: ErrorRequestHandler): T;
|
||||
use(path: string, ...handler: RequestHandler[]): T;
|
||||
use(path: string, handler: ErrorRequestHandler): T;
|
||||
}
|
||||
|
||||
export function Router(options?: any): Router;
|
||||
|
||||
Reference in New Issue
Block a user