Merge pull request #32384 from Guillaume-Mayer/koa-router-matched-route

[koa-router] Add matched route variables
This commit is contained in:
Benjamin Lichtman
2019-01-22 09:14:07 -08:00
committed by GitHub
+5
View File
@@ -52,6 +52,11 @@ declare namespace Router {
* the router instance
*/
router: Router<StateT, CustomT>;
/**
* Matched route
*/
_matchedRoute: string | RegExp | undefined;
_matchedRouteName: string | undefined;
}
export type RouterContext<StateT = any, CustomT = {}> =