Fix middleware function name in @types/koa-router

`middlewares` should be `middleware`

https://github.com/alexmingoia/koa-router/blob/master/lib/router.js#L314
This commit is contained in:
Stan Bondi
2017-11-20 21:38:12 +02:00
committed by GitHub
parent a4c2d3c7de
commit 35cb646ea8
+1 -1
View File
@@ -219,7 +219,7 @@ declare class Router {
/**
* Returns router middleware which dispatches a route matching the request.
*/
middlewares(): Router.IMiddleware;
middleware(): Router.IMiddleware;
/**
* Returns separate middleware for responding to `OPTIONS` requests with