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.
1 parent 9c6865d commit af43c5eCopy full SHA for af43c5e
index.d.ts
@@ -165,9 +165,9 @@ declare module "@uidotdev/usehooks" {
165
166
export function useIdle(ms?: number): boolean;
167
168
- export function useIntersectionObserver(
+ export function useIntersectionObserver<T extends Element>(
169
options?: IntersectionObserverInit
170
- ): [React.MutableRefObject<Element>, IntersectionObserverEntry | null];
+ ): [React.MutableRefObject<T>, IntersectionObserverEntry | null];
171
172
export function useIsClient(): boolean;
173
0 commit comments