mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Include Arrays in use method
Express 4.x API reference for app.use includes the use of Arrays. This update adds this to the definition file.
This commit is contained in:
2
express/express.d.ts
vendored
2
express/express.d.ts
vendored
@@ -106,6 +106,8 @@ declare module "express" {
|
||||
use(handler: ErrorRequestHandler): T;
|
||||
use(path: string, ...handler: RequestHandler[]): T;
|
||||
use(path: string, 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