diff --git a/web/src/elements/Base.ts b/web/src/elements/Base.ts index c50896957..7b2420454 100644 --- a/web/src/elements/Base.ts +++ b/web/src/elements/Base.ts @@ -13,10 +13,15 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css"; import { Config, CurrentTenant, UiThemeEnum } from "@goauthentik/api"; -type AkInterface = HTMLElement & { getTheme: () => Promise }; +type AkInterface = HTMLElement & { + getTheme: () => Promise; + tenant?: CurrentTenant; + uiConfig?: UIConfig; + config?: Config; +}; export const rootInterface = (): T | undefined => - document.body.querySelector('[data-ak-interface-root]') as T ?? undefined + (document.body.querySelector("[data-ak-interface-root]") as T) ?? undefined; export function ensureCSSStyleSheet(css: CSSStyleSheet | CSSResult): CSSStyleSheet { if (css instanceof CSSResult) {