Files
NapCatQQ/.pnpm-store/v3/files/71/45bfa1d3469733a97e04a161cd1a32713e4b59c513b65d7035d608381250ab017fa58ee320acdadd87dc8263cb8b26dfbe2d0b9499dee8dcc0416f303c24db
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
788 B
Plaintext

type UseIntersectionObserverOptions = {
root?: Element | Document | null;
isEnabled?: boolean;
rootMargin?: string;
threshold?: number | number[];
freezeOnceVisible?: boolean;
onChange?: (isIntersecting: boolean, entry: IntersectionObserverEntry) => void;
initialIsIntersecting?: boolean;
};
type IntersectionReturn = [
(node?: Element | null) => void,
boolean,
IntersectionObserverEntry | undefined
] & {
ref: (node?: Element | null) => void;
isIntersecting: boolean;
entry?: IntersectionObserverEntry;
};
declare function useIntersectionObserver({ threshold, root, rootMargin, isEnabled, freezeOnceVisible, initialIsIntersecting, onChange, }?: UseIntersectionObserverOptions): IntersectionReturn;
export { useIntersectionObserver };