From fe9a69ca6fa8c209c833ebce307006bd5ae078e4 Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Mon, 8 May 2023 21:51:33 -0600 Subject: [PATCH] Convert src/runtime/internal/globals.ts to JavaScript --- src/runtime/internal/globals.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/runtime/internal/globals.ts b/src/runtime/internal/globals.ts index b97f81ab9f..c9fa7ab38b 100644 --- a/src/runtime/internal/globals.ts +++ b/src/runtime/internal/globals.ts @@ -1,7 +1,9 @@ -declare const global: any; - export const globals = (typeof window !== 'undefined' - ? window - : typeof globalThis !== 'undefined' - ? globalThis - : global) as unknown as typeof globalThis; + ? window + : typeof globalThis !== 'undefined' + ? globalThis + : global); + + + +