We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 809487c commit a4206f2Copy full SHA for a4206f2
Runtime/src/find-global.ts
@@ -1,13 +1 @@
1
-interface GlobalVariable {}
2
-declare const global: GlobalVariable;
3
-
4
-export let globalVariable: any;
5
-if (typeof globalThis !== "undefined") {
6
- globalVariable = globalThis;
7
-} else if (typeof window !== "undefined") {
8
- globalVariable = window;
9
-} else if (typeof global !== "undefined") {
10
- globalVariable = global;
11
-} else if (typeof self !== "undefined") {
12
- globalVariable = self;
13
-}
+export const globalVariable: any = globalThis;
0 commit comments