From cace3fd8aafff34d5a82b5d1e2b352bc1589dd2d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 13 Oct 2020 17:40:34 +0100 Subject: [PATCH] TS conversion exports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/@types/global.d.ts | 4 ++++ src/languageHandler.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 93be0fafc0..ed28a5c479 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -32,6 +32,8 @@ import type {Renderer} from "react-dom"; import RightPanelStore from "../stores/RightPanelStore"; import WidgetStore from "../stores/WidgetStore"; import CallHandler from "../CallHandler"; +import {Analytics} from "../Analytics"; +import UserActivity from "../UserActivity"; declare global { interface Window { @@ -56,6 +58,8 @@ declare global { mxRightPanelStore: RightPanelStore; mxWidgetStore: WidgetStore; mxCallHandler: CallHandler; + mxAnalytics: Analytics; + mxUserActivity: UserActivity; } interface Document { diff --git a/src/languageHandler.tsx b/src/languageHandler.tsx index e699f8e301..0921b65137 100644 --- a/src/languageHandler.tsx +++ b/src/languageHandler.tsx @@ -96,7 +96,7 @@ function safeCounterpartTranslate(text: string, options?: object) { return translated; } -interface IVariables { +export interface IVariables { count?: number; [key: string]: number | string; }