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.

19 lines (18 loc) 803 B
import type { RouteLocationRaw, Router } from 'vue-router'; /** * Preload a component or components that have been globally registered. * @param components Pascal-cased name or names of components to prefetch * @since 3.0.0 */ export declare const preloadComponents: (components: string | string[]) => Promise<void>; /** * Prefetch a component or components that have been globally registered. * @param components Pascal-cased name or names of components to prefetch * @since 3.0.0 */ export declare const prefetchComponents: (components: string | string[]) => Promise<void> | undefined; /** @since 3.0.0 */ export declare function preloadRouteComponents(to: RouteLocationRaw, router?: Router & { _routePreloaded?: Set<string>; _preloadPromises?: Array<Promise<any>>; }): Promise<void>;