UNPKG

@nuxt-modules/lazy-load

Version:
41 lines (36 loc) 944 B
import * as _nuxt_schema from '@nuxt/schema'; import { ComputedRef } from 'vue'; declare type LazyLoadOptions = { selector?: string; options?: { rootMargin: string; threshold: number; enableAutoReload: boolean; [key: string]: any; }; [key: string]: any; }; declare type Observer = { observe: Function; observer: IntersectionObserver; triggerLoad: Function; }; declare type UseLazyLoad = { init(): Observer; observer: ComputedRef<Observer>; }; declare const _default: _nuxt_schema.NuxtModule<LazyLoadOptions>; declare module '@nuxt/schema' { interface ConfigSchema { publicRuntimeConfig?: { lazyLoad?: LazyLoadOptions; }; } interface NuxtConfig { lazyLoad?: LazyLoadOptions; } interface NuxtOptions { lazyLoad?: LazyLoadOptions; } } export { LazyLoadOptions, Observer, UseLazyLoad, _default as default };