Skip to content

Commit fd22605

Browse files
committed
fix(globalThis): Fix type of globalThis
1 parent 7cc004b commit fd22605

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/_internal/globalThis.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
declare let global: typeof globalThis;
2+
13
// eslint-disable-next-line @typescript-eslint/naming-convention
2-
const globalThis_ =
4+
const globalThis_: typeof globalThis =
35
(typeof globalThis === 'object' && globalThis) ||
46
(typeof window === 'object' && window) ||
57
(typeof self === 'object' && self) ||
68
(typeof global === 'object' && global) ||
7-
(function () {
9+
(function (this: unknown) {
810
return this;
911
})() ||
1012
Function('return this')();

0 commit comments

Comments
 (0)