Files
lcbp3.np-dms.work/frontend/node_modules/next/dist/client/use-intersection.d.ts
2025-09-21 20:29:15 +07:00

9 lines
412 B
TypeScript
Executable File

type UseIntersectionObserverInit = Pick<IntersectionObserverInit, 'rootMargin' | 'root'>;
type UseIntersection = {
disabled?: boolean;
} & UseIntersectionObserverInit & {
rootRef?: React.RefObject<HTMLElement | null> | null;
};
export declare function useIntersection<T extends Element>({ rootRef, rootMargin, disabled, }: UseIntersection): [(element: T | null) => void, boolean, () => void];
export {};