mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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:
parent
a461a243e2
commit
bec5648ef7
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user