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