UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

12 lines (11 loc) 555 B
import type { Ref } from 'vue'; export type IntersectionObserverOptions = Omit<IntersectionObserverInit, 'root'> & { root?: Element | Document | null | string; }; export declare const 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;