Skip to content

Commit 4a833bd

Browse files
authored
remove Node dependency (typeof global) from domHelpers
1 parent 692e782 commit 4a833bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-aria/utils/src/domHelpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ export const getOwnerDocument = (el: Element | null | undefined): Document => {
33
};
44

55
export const getOwnerWindow = (
6-
el: (Window & typeof global) | Element | null | undefined
7-
): Window & typeof global => {
6+
el: Window | Element | null | undefined
7+
): Window => {
88
if (el && 'window' in el && el.window === el) {
99
return el;
1010
}

0 commit comments

Comments
 (0)