UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

36 lines • 1.47 kB
import { AsyncComponentLoader, DefineSetupFnComponent } from "vue"; //#region src/components/runtime/lazy-hydrated-component.d.ts type LazyHydrationEmits = { hydrated: () => void; }; type LazyComponentFactory<Props extends Record<string, any>> = (id: string, loader: AsyncComponentLoader) => DefineSetupFnComponent<Props, LazyHydrationEmits>; interface LazyVisibleProps { hydrateOnVisible?: true | IntersectionObserverInit; } export declare const createLazyVisibleComponent: LazyComponentFactory<LazyVisibleProps>; interface LazyIdleProps { hydrateOnIdle?: true | number; } export declare const createLazyIdleComponent: LazyComponentFactory<LazyIdleProps>; interface LazyInteractionProps { hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true; } export declare const createLazyInteractionComponent: LazyComponentFactory<LazyInteractionProps>; interface LazyMediaQueryProps { hydrateOnMediaQuery: string; } export declare const createLazyMediaQueryComponent: LazyComponentFactory<LazyMediaQueryProps>; interface LazyIfProps { hydrateWhen?: boolean; } export declare const createLazyIfComponent: LazyComponentFactory<LazyIfProps>; interface LazyTimeProps { hydrateAfter: number; } export declare const createLazyTimeComponent: LazyComponentFactory<LazyTimeProps>; interface LazyNeverProps { hydrateNever?: true; } export declare const createLazyNeverComponent: LazyComponentFactory<LazyNeverProps>; //#endregion export {};