fix(server): make LayoutProps generic (#1592)

This commit is contained in:
Reed von Redwitz
2023-08-05 22:27:13 +02:00
committed by GitHub
parent cc0e2cb2ec
commit 1fb7f3bea9
5 changed files with 55 additions and 32 deletions
+3 -1
View File
@@ -172,7 +172,9 @@ export interface AppModule {
default: ComponentType<AppProps>;
}
export interface LayoutProps extends PageProps {
// deno-lint-ignore no-explicit-any
export interface LayoutProps<T = any, S = Record<string, unknown>>
extends PageProps<T, S> {
Component: ComponentType<Record<never, never>>;
}