refactor(core): refactor routes generation logic (#7054)

* refactor(core): refactor routes generation logic

* fixes
This commit is contained in:
Joshua Chen 2022-03-29 16:37:29 +08:00 committed by GitHub
parent e31e91ef47
commit 77662260f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 551 additions and 506 deletions

View file

@ -46,13 +46,13 @@ Create a route to add to the website.
interface RouteConfig {
path: string;
component: string;
modules?: RouteModule;
modules?: RouteModules;
routes?: RouteConfig[];
exact?: boolean;
priority?: number;
}
interface RouteModule {
[module: string]: Module | RouteModule | RouteModule[];
interface RouteModules {
[module: string]: Module | RouteModules | RouteModules[];
}
type Module =
| {