diff --git a/apps/web/modules/settings/billing/billing-view.tsx b/apps/web/modules/settings/billing/billing-view.tsx index ea0bad02152c5e..900c699104278a 100644 --- a/apps/web/modules/settings/billing/billing-view.tsx +++ b/apps/web/modules/settings/billing/billing-view.tsx @@ -14,6 +14,16 @@ interface CtaRowProps { className?: string; } +declare global { + interface Window { + Plain?: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + init: (config: any) => void; + open: () => void; + }; + } +} + export const CtaRow = ({ title, description, className, children }: CtaRowProps) => { return ( <> diff --git a/apps/web/modules/settings/platform/billing/billing-view.tsx b/apps/web/modules/settings/platform/billing/billing-view.tsx index 6df9e0831b1df5..5506597f96157b 100644 --- a/apps/web/modules/settings/platform/billing/billing-view.tsx +++ b/apps/web/modules/settings/platform/billing/billing-view.tsx @@ -13,6 +13,16 @@ import { useGetUserAttributes } from "@components/settings/platform/hooks/useGet import { CtaRow } from "~/settings/billing/billing-view"; +declare global { + interface Window { + Plain?: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + init: (config: any) => void; + open: () => void; + }; + } +} + export default function PlatformBillingUpgrade() { const pathname = usePathname(); const { t } = useLocale();