Skip to content

Commit

Permalink
Fix primefaces#5809: IntersectionObserver TS def (primefaces#5810)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 20, 2024
1 parent a99cb2f commit f8eea11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/hooks/hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export declare function useFavicon(newIcon: string, rel: string): void;
* @param {IntersectionObserver} options The options of the intersection observer.
* @return {boolean} Whether the element is intersecting or not.
*/
export declare function useIntersectionObserver(ref: React.RefObject<Element>, options?: IntersectionObserver): boolean;
export declare function useIntersectionObserver(ref: React.RefObject<Element>, options?: IntersectionObserverInit): boolean;
/**
* Custom hook to use detect click outside.
* @param {React.RefObject<Element>} ref - The ref of the element to detect click outside.
Expand Down

0 comments on commit f8eea11

Please sign in to comment.