We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f75e8f commit ceb1d1bCopy full SHA for ceb1d1b
packages/utils/src/misc.ts
@@ -48,14 +48,14 @@ const fallbackGlobalObject = {};
48
*
49
* @returns Global scope object
50
*/
51
-export function getGlobalObject<T>(): T & typeof globalThis & SentryGlobal {
+export function getGlobalObject<T>(): T & SentryGlobal {
52
return (isNodeEnv()
53
? global
54
: typeof window !== 'undefined'
55
? window
56
: typeof self !== 'undefined'
57
? self
58
- : fallbackGlobalObject) as T & typeof globalThis & SentryGlobal;
+ : fallbackGlobalObject) as T & SentryGlobal;
59
}
60
61
/**
0 commit comments