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.
typeof globalThis
1 parent 31861ad commit 556022aCopy full SHA for 556022a
eslint.config.mjs
@@ -361,6 +361,10 @@ export default [{
361
},
362
363
languageOptions: {
364
+ globals: {
365
+ globalThis: "readonly",
366
+ },
367
+
368
parser: tseslint.parser,
369
ecmaVersion: 6,
370
sourceType: "module",
packages/@react-aria/utils/src/domHelpers.ts
@@ -3,8 +3,8 @@ export const getOwnerDocument = (el: Element | null | undefined): Document => {
3
};
4
5
export const getOwnerWindow = (
6
- el: (Window & typeof global) | Element | null | undefined
7
-): Window & typeof global => {
+ el: (Window & typeof globalThis) | Element | null | undefined
+): Window & typeof globalThis => {
8
if (el && 'window' in el && el.window === el) {
9
return el;
10
}
0 commit comments