From e3e6847c82cf6c5ebcad0ff9b3c77c9bc4118557 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Mon, 12 Feb 2024 13:27:07 +0100 Subject: [PATCH] Prevent users from having to use any --- src/account/pages/PageProps.ts | 5 +++-- src/login/pages/PageProps.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/account/pages/PageProps.ts b/src/account/pages/PageProps.ts index 15ec16aa..620b6992 100644 --- a/src/account/pages/PageProps.ts +++ b/src/account/pages/PageProps.ts @@ -1,10 +1,11 @@ import type { I18n } from "keycloakify/account/i18n"; import type { TemplateProps, ClassKey } from "keycloakify/account/TemplateProps"; import type { LazyOrNot } from "keycloakify/tools/LazyOrNot"; +import type { KcContext } from "keycloakify/account/kcContext"; -export type PageProps = { +export type PageProps = { Template: LazyOrNot<(props: TemplateProps) => JSX.Element | null>; - kcContext: KcContext; + kcContext: NarowedKcContext; i18n: I18nExtended; doUseDefaultCss: boolean; classes?: Partial>; diff --git a/src/login/pages/PageProps.ts b/src/login/pages/PageProps.ts index 6e513130..d2c80299 100644 --- a/src/login/pages/PageProps.ts +++ b/src/login/pages/PageProps.ts @@ -1,10 +1,11 @@ import type { I18n } from "keycloakify/login/i18n"; import { type TemplateProps, type ClassKey } from "keycloakify/login/TemplateProps"; import type { LazyOrNot } from "keycloakify/tools/LazyOrNot"; +import type { KcContext } from "keycloakify/account/kcContext"; -export type PageProps = { +export type PageProps = { Template: LazyOrNot<(props: TemplateProps) => JSX.Element | null>; - kcContext: KcContext; + kcContext: NarowedKcContext; i18n: I18nExtended; doUseDefaultCss: boolean; classes?: Partial>;