co-authored by
Luca Casonato
parent
2ec980ca45
commit
04a32f3498
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user