From d9857b9480bfa0f2d9768404360dab74339282b2 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Mon, 19 Oct 2020 12:26:51 +0200 Subject: [PATCH] Property does not exist according to TS. --- packages/react-async/src/globalScope.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-async/src/globalScope.ts b/packages/react-async/src/globalScope.ts index 8fd3ffbd..798b4d78 100644 --- a/packages/react-async/src/globalScope.ts +++ b/packages/react-async/src/globalScope.ts @@ -13,7 +13,7 @@ declare type GlobalScope = { const globalScope = (() => { if (typeof self === "object" && self.self === self) return self if (typeof global === "object" && global.global === global) return global - if (typeof global === "object" && global.GLOBAL === global) return global + if (typeof global === "object" && global["GLOBAL"] === global) return global return {} // fallback that relies on imported modules to be singletons })() as GlobalScope