refactor: simplify loadPageModule type

pull/1136/head
Divyansh Singh 3 years ago
parent dddcf152fc
commit 7557701e9b

@ -34,7 +34,7 @@ interface PageModule {
}
export function createRouter(
loadPageModule: (path: string) => PageModule | Promise<PageModule>,
loadPageModule: (path: string) => Promise<PageModule>,
fallbackComponent?: Component
): Router {
const route = reactive(getDefaultRoute())

Loading…
Cancel
Save