naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
12 lines (11 loc) • 554 B
TypeScript
import type { Ref } from 'vue';
export type IntersectionObserverOptions = Omit<IntersectionObserverInit, 'root'> & {
root?: Element | Document | null | string;
};
export declare function resolveOptionsAndHash(options?: IntersectionObserverOptions | undefined): {
hash: string;
options: Omit<IntersectionObserverInit, 'root'> & {
root: Element | Document;
};
};
export declare const observeIntersection: (el: HTMLElement | null, options: IntersectionObserverOptions | undefined, shouldStartLoadingRef: Ref<boolean>) => () => void;