Skip to content

Commit 2406275

Browse files
committed
Ignore type completely.
1 parent d9857b9 commit 2406275

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: packages/react-async/src/globalScope.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ declare type GlobalScope = {
1111
* This file is excluded from coverage reporting because these globals are environment-specific so we can't test them all.
1212
*/
1313
const globalScope = (() => {
14+
const glbl = global as any
1415
if (typeof self === "object" && self.self === self) return self
15-
if (typeof global === "object" && global.global === global) return global
16-
if (typeof global === "object" && global["GLOBAL"] === global) return global
16+
if (typeof glbl === "object" && glbl.global === glbl) return glbl
17+
if (typeof glbl === "object" && glbl.GLOBAL === glbl) return glbl
1718
return {} // fallback that relies on imported modules to be singletons
1819
})() as GlobalScope
1920

0 commit comments

Comments
 (0)