From 2fc4c82593f520cdb2259f0af7cc17f83262af5e Mon Sep 17 00:00:00 2001 From: M Fahru Date: Mon, 28 Mar 2022 06:27:18 -0400 Subject: [PATCH] [web] Move window object typescript declaration file to a more general location (#7244) GitOrigin-RevId: 87e30b16fa48e1aaebba76bed19d8c583a4cf1ca --- services/web/tsconfig.json | 3 ++- services/web/types/window.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 services/web/types/window.ts diff --git a/services/web/tsconfig.json b/services/web/tsconfig.json index f7c5c3fb1c..d2109f7790 100644 --- a/services/web/tsconfig.json +++ b/services/web/tsconfig.json @@ -16,6 +16,7 @@ "frontend/js/**/*.*", "modules/**/frontend/js/**/*.*", "test/frontend/**/*.*", - "modules/**/test/frontend/**/*.*" + "modules/**/test/frontend/**/*.*", + "types" ] } diff --git a/services/web/types/window.ts b/services/web/types/window.ts new file mode 100644 index 0000000000..36972f87da --- /dev/null +++ b/services/web/types/window.ts @@ -0,0 +1,10 @@ +declare global { + // eslint-disable-next-line no-unused-vars + interface Window { + sl_debugging: boolean + user: { + id: string + } + } +} +export {} // pretend this is a module