feat: _app (#87)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Leo Kettmeir
2022-02-18 19:30:24 +01:00
committed by GitHub
co-authored by Luca Casonato
parent 2ec980ca45
commit 04a32f3498
8 changed files with 67 additions and 5 deletions
+7 -1
View File
@@ -1,5 +1,7 @@
import { ComponentType } from "./deps.ts";
export interface PageProps<
T extends Record<string, unknown> = Record<never, never>,
T extends Record<string, unknown> = Record<string, unknown>,
> {
/** The URL of the request that resulted in this page being rendered. */
url: URL;
@@ -25,6 +27,10 @@ export interface PageProps<
renderData?: T;
}
export interface AppProps {
Component: ComponentType<Record<never, never>>;
}
export interface UnknownPageProps {
/** The URL of the request that resulted in this page being rendered. */
url: URL;