From b4b53d2552d6e9497974df3fe5161e775de80e14 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Mon, 25 Nov 2024 11:41:17 +0100 Subject: [PATCH] Re export wide type def of the kcContext --- src/bin/update-kc-gen.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/update-kc-gen.ts b/src/bin/update-kc-gen.ts index b8f1a7f0..dff24fd2 100644 --- a/src/bin/update-kc-gen.ts +++ b/src/bin/update-kc-gen.ts @@ -62,7 +62,12 @@ export async function command(params: { buildContext: BuildContext }) { 2 )};`, ``, - `type KcContext =`, + `/**`, + ` * NOTE: Do not import this type except maybe in your entrypoint. `, + ` * If you need to import the KcContext import it either from src/login/KcContext.ts or src/account/KcContext.ts.`, + ` * Depending on the theme type you are working on.`, + ` */`, + `export type KcContext =`, hasLoginTheme && ` | import("./login/KcContext").KcContext`, hasAccountTheme && ` | import("./account/KcContext").KcContext`, hasAdminTheme && ` | import("./admin/KcContext").KcContext`,