NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/qiankun/lib/prefetch.d.ts
2023-09-14 14:47:11 +08:00

15 lines
528 B
TypeScript

/**
* @author Kuitos
* @since 2019-02-26
*/
import type { ImportEntryOpts } from 'import-html-entry';
import type { AppMetadata, PrefetchStrategy } from './interfaces';
declare global {
interface NetworkInformation {
saveData: boolean;
effectiveType: string;
}
}
export declare function prefetchImmediately(apps: AppMetadata[], opts?: ImportEntryOpts): void;
export declare function doPrefetchStrategy(apps: AppMetadata[], prefetchStrategy: PrefetchStrategy, importEntryOpts?: ImportEntryOpts): void;