mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #32384 from Guillaume-Mayer/koa-router-matched-route
[koa-router] Add matched route variables
This commit is contained in:
Vendored
+5
@@ -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 = {}> =
|
||||
|
||||
Reference in New Issue
Block a user