From 7ced35e951a8a1f076d9dd559bab892019699805 Mon Sep 17 00:00:00 2001 From: garronej Date: Mon, 17 Apr 2023 15:16:43 +0200 Subject: [PATCH] Update the way we export the KcContext type --- src/keycloak-theme/account/kcContext.ts | 2 +- src/keycloak-theme/login/kcContext.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keycloak-theme/account/kcContext.ts b/src/keycloak-theme/account/kcContext.ts index 56ce923..87df074 100644 --- a/src/keycloak-theme/account/kcContext.ts +++ b/src/keycloak-theme/account/kcContext.ts @@ -17,4 +17,4 @@ export const { kcContext } = getKcContext({ //mockPageId: "password.ftl", }); -export type KcContext = NonNullable; +export type KcContext = NonNullable["kcContext"]>; diff --git a/src/keycloak-theme/login/kcContext.ts b/src/keycloak-theme/login/kcContext.ts index e820959..244b41e 100644 --- a/src/keycloak-theme/login/kcContext.ts +++ b/src/keycloak-theme/login/kcContext.ts @@ -98,4 +98,4 @@ export const { kcContext } = getKcContext({ }); -export type KcContext = NonNullable; \ No newline at end of file +export type KcContext = NonNullable["kcContext"]>; \ No newline at end of file