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.

21 lines (20 loc) 917 B
import type { Component } from 'vue'; 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; export declare function _loadAsyncComponent(component: Component): any; /** @since 3.0.0 */ export declare function preloadRouteComponents(to: RouteLocationRaw, router?: Router & { _routePreloaded?: Set<string>; _preloadPromises?: Array<Promise<unknown>>; }): Promise<void>;