fix: PluginRoute supports AsyncRoute and AsyncLayout (#2139)

This commit is contained in:
Reed von Redwitz
2023-12-04 16:56:00 +01:00
committed by GitHub
parent 993f1020b6
commit c8844ad98c
6 changed files with 93 additions and 16 deletions
+5 -1
View File
@@ -572,7 +572,11 @@ export interface PluginRoute {
/** A path in the format of a filename path without filetype */
path: string;
component?: ComponentType<PageProps> | ComponentType<AppProps>;
component?:
| ComponentType<PageProps>
| ComponentType<AppProps>
| AsyncRoute
| AsyncLayout;
// deno-lint-ignore no-explicit-any
handler?: Handler<any, any> | Handlers<any, any>;