fix: island module type in manifest (#2101)

This commit is contained in:
Marvin Hagemeister
2023-11-30 13:50:32 +01:00
committed by GitHub
parent daf8ca19d2
commit a0a756a1ec
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -300,7 +300,8 @@ export async function extractRoutes(
id,
name,
url: processedIsland.path,
component: exportedFunction,
// deno-lint-ignore no-explicit-any
component: exportedFunction as ComponentType<any>,
exportName,
});
}
+1 -1
View File
@@ -537,7 +537,7 @@ export interface Middleware<State = Record<string, unknown>> {
export interface IslandModule {
// deno-lint-ignore no-explicit-any
[key: string]: ComponentType<any>;
[key: string]: ComponentType<any> | unknown;
}
export interface Island {