Remove dependency resolution override for React 19 types (#39569)
Co-authored-by: ChaosExAnima <ChaosExAnima@users.noreply.github.com>
This commit is contained in:
1 parent
f440615b01
commit
f2e10fd5db
52 files changed
+112
-110
No files matched your search
@@ -2,10 +2,10 @@
|
||||
* Handle clicks that occur outside of the element(s) provided in the first parameter
|
||||
*/
|
||||
|
||||
import type { MutableRefObject } from 'react';
|
||||
import type { RefObject } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
type ElementRef = MutableRefObject<HTMLElement | null>;
|
||||
type ElementRef = RefObject<HTMLElement | null>;
|
||||
|
||||
export function useOnClickOutside(
|
||||
excludedElementRef: ElementRef | ElementRef[] | null,
|
||||
|
||||
Reference in new issue
Block a user