We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c944cfd commit 7ba6b3fCopy full SHA for 7ba6b3f
src/framework/piral-core/src/types/api.ts
@@ -97,7 +97,10 @@ export interface RouteBaseProps<UrlParams extends { [K in keyof UrlParams]?: str
97
/**
98
* The props used by a page component.
99
*/
100
-export interface PageComponentProps<T extends { [K in keyof T]?: string } = {}, S = any> extends RouteBaseProps<T, S> {
+export interface PageComponentProps<
101
+ UrlParams extends { [K in keyof UrlParams]?: string } = Record<string, string>,
102
+ UrlState = any,
103
+> extends RouteBaseProps<UrlParams, UrlState> {
104
105
* The meta data registered with the page.
106
0 commit comments