mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Enable router config pass data or function
This commit is contained in:
Vendored
+1
@@ -22,6 +22,7 @@ export interface RouteConfig {
|
||||
exact?: boolean;
|
||||
strict?: boolean;
|
||||
routes?: RouteConfig[];
|
||||
[propName: string]: any;
|
||||
}
|
||||
|
||||
export interface MatchedRoute<Params extends { [K in keyof Params]?: string }> {
|
||||
|
||||
@@ -46,7 +46,8 @@ const routes: RouteConfig[] = [
|
||||
routes: [{
|
||||
path: "/child/:id/grand-child",
|
||||
component: GrandChild
|
||||
}]
|
||||
}],
|
||||
loadData: () => Promise.resolve({})
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user