Gazebo_simulation-Frontend/node_modules/@restart/hooks/cjs/useIntersectionObserver.d.ts

9 lines
431 B
TypeScript
Raw Normal View History

2020-12-21 11:29:31 -04:00
/**
* Setup an [`IntersectionObserver`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver) on
* a DOM Element.
*
* @param element The DOM element to observe
* @param init IntersectionObserver options
*/
export default function useIntersectionObserver<TElement extends Element>(element: TElement | null | undefined, { threshold, root, rootMargin }?: IntersectionObserverInit): IntersectionObserverEntry[];