mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Reuse IRouterParamContext
This commit is contained in:
Vendored
+1
-9
@@ -44,15 +44,7 @@ declare namespace Router {
|
||||
}
|
||||
|
||||
// Deprecated - please use IRouterParamContext
|
||||
export interface IRouterContext extends Koa.ParameterizedContext {
|
||||
/**
|
||||
* url params
|
||||
*/
|
||||
params: any;
|
||||
/**
|
||||
* the router instance
|
||||
*/
|
||||
router: Router;
|
||||
export interface IRouterContext extends Koa.ParameterizedContext<any, IRouterParamContext> {
|
||||
}
|
||||
|
||||
export interface IRouterParamContext<StateT = any, CustomT = {}> {
|
||||
|
||||
Reference in New Issue
Block a user