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 global
domHelpers
1 parent 692e782 commit 4a833bdCopy full SHA for 4a833bd
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 | Element | null | undefined
+): Window => {
8
if (el && 'window' in el && el.window === el) {
9
return el;
10
}
0 commit comments