usehooks-ts
Version:
React hook library, ready to use, written in Typescript.
7 lines • 385 B
TypeScript
import { RefObject } from 'react';
interface Args extends IntersectionObserverInit {
freezeOnceVisible?: boolean;
}
declare function useIntersectionObserver(elementRef: RefObject<Element>, { threshold, root, rootMargin, freezeOnceVisible, }: Args): IntersectionObserverEntry | undefined;
export default useIntersectionObserver;
//# sourceMappingURL=useIntersectionObserver.d.ts.map