next
Version:
The React Framework
7 lines (6 loc) • 334 B
TypeScript
declare type UseIntersectionObserverInit = Pick<IntersectionObserverInit, 'rootMargin'>;
declare type UseIntersection = {
disabled?: boolean;
} & UseIntersectionObserverInit;
export declare function useIntersection<T extends Element>({ rootMargin, disabled, }: UseIntersection): [(element: T | null) => void, boolean];
export {};