Update the way we export the KcContext type

This commit is contained in:
garronej 2023-04-17 15:16:43 +02:00
parent 9de91a5ce0
commit 7ced35e951
2 changed files with 2 additions and 2 deletions

View File

@ -17,4 +17,4 @@ export const { kcContext } = getKcContext({
//mockPageId: "password.ftl",
});
export type KcContext = NonNullable<typeof kcContext>;
export type KcContext = NonNullable<ReturnType<typeof getKcContext>["kcContext"]>;

View File

@ -98,4 +98,4 @@ export const { kcContext } = getKcContext({
});
export type KcContext = NonNullable<typeof kcContext>;
export type KcContext = NonNullable<ReturnType<typeof getKcContext>["kcContext"]>;