UNPKG

334 BTypeScriptView Raw
1declare type UseIntersectionObserverInit = Pick<IntersectionObserverInit, 'rootMargin'>;
2declare type UseIntersection = {
3 disabled?: boolean;
4} & UseIntersectionObserverInit;
5export declare function useIntersection<T extends Element>({ rootMargin, disabled, }: UseIntersection): [(element: T | null) => void, boolean];
6export {};