Be more relax on the type safety to avoir headache
This commit is contained in:
@ -224,11 +224,11 @@ export type TemplateProps<KcContext extends KcContextBase.Common, I18n extends I
|
|||||||
infoNode?: ReactNode;
|
infoNode?: ReactNode;
|
||||||
} & KcTemplateProps;
|
} & KcTemplateProps;
|
||||||
|
|
||||||
export type PageProps<KcContext extends KcContextBase, I18n extends I18nBase> = {
|
export type PageProps<KcContext, I18n extends I18nBase> = {
|
||||||
kcContext: KcContext;
|
kcContext: KcContext;
|
||||||
i18n: I18n;
|
i18n: I18n;
|
||||||
doFetchDefaultThemeResources?: boolean;
|
doFetchDefaultThemeResources?: boolean;
|
||||||
Template: (props: TemplateProps<KcContext, I18n>) => JSX.Element | null;
|
Template: (props: TemplateProps<any, any>) => JSX.Element | null;
|
||||||
} & KcProps;
|
} & KcProps;
|
||||||
|
|
||||||
assert<typeof defaultKcProps extends KcProps ? true : false>();
|
assert<typeof defaultKcProps extends KcProps ? true : false>();
|
||||||
|
Reference in New Issue
Block a user