21 lines
917 B
TypeScript
21 lines
917 B
TypeScript
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>;
|