@nuxt-modules/lazy-load
Version:
Lazy load module for Nuxt 3
21 lines (20 loc) • 486 B
TypeScript
import { ComputedRef } from 'vue';
export declare type LazyLoadOptions = {
selector?: string;
options?: {
rootMargin: string;
threshold: number;
enableAutoReload: boolean;
[key: string]: any;
};
[key: string]: any;
};
export declare type Observer = {
observe: Function;
observer: IntersectionObserver;
triggerLoad: Function;
};
export declare type UseLazyLoad = {
init(): Observer;
observer: ComputedRef<Observer>;
};