source: imaps-frontend/node_modules/vite/dist/node/runtime.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 2.7 KB
Line 
1import { V as ViteRuntimeOptions, b as ViteModuleRunner, M as ModuleCacheMap, c as HMRClient, R as ResolvedResult, d as ViteRuntimeModuleContext } from './types.d-aGj9QkWt.js';
2export { a as FetchFunction, F as FetchResult, e as HMRConnection, H as HMRLogger, g as HMRRuntimeConnection, f as ModuleCache, S as SSRImportMetadata, h as ViteRuntimeImportMeta, s as ssrDynamicImportKey, i as ssrExportAllKey, j as ssrImportKey, k as ssrImportMetaKey, l as ssrModuleExportsKey } from './types.d-aGj9QkWt.js';
3import '../../types/hot.js';
4import '../../types/hmrPayload.js';
5import '../../types/customEvent.js';
6
7interface ViteRuntimeDebugger {
8 (formatter: unknown, ...args: unknown[]): void;
9}
10declare class ViteRuntime {
11 options: ViteRuntimeOptions;
12 runner: ViteModuleRunner;
13 private debug?;
14 /**
15 * Holds the cache of modules
16 * Keys of the map are ids
17 */
18 moduleCache: ModuleCacheMap;
19 hmrClient?: HMRClient;
20 entrypoints: Set<string>;
21 private idToUrlMap;
22 private fileToIdMap;
23 private envProxy;
24 private _destroyed;
25 private _resetSourceMapSupport?;
26 constructor(options: ViteRuntimeOptions, runner: ViteModuleRunner, debug?: ViteRuntimeDebugger | undefined);
27 /**
28 * URL to execute. Accepts file path, server path or id relative to the root.
29 */
30 executeUrl<T = any>(url: string): Promise<T>;
31 /**
32 * Entrypoint URL to execute. Accepts file path, server path or id relative to the root.
33 * In the case of a full reload triggered by HMR, this is the module that will be reloaded.
34 * If this method is called multiple times, all entrypoints will be reloaded one at a time.
35 */
36 executeEntrypoint<T = any>(url: string): Promise<T>;
37 /**
38 * Clear all caches including HMR listeners.
39 */
40 clearCache(): void;
41 /**
42 * Clears all caches, removes all HMR listeners, and resets source map support.
43 * This method doesn't stop the HMR connection.
44 */
45 destroy(): Promise<void>;
46 /**
47 * Returns `true` if the runtime has been destroyed by calling `destroy()` method.
48 */
49 isDestroyed(): boolean;
50 private invalidateFiles;
51 private normalizeEntryUrl;
52 private processImport;
53 private cachedRequest;
54 private cachedModule;
55 protected directRequest(id: string, fetchResult: ResolvedResult, _callstack: string[]): Promise<any>;
56}
57
58declare class ESModulesRunner implements ViteModuleRunner {
59 runViteModule(context: ViteRuntimeModuleContext, code: string): Promise<any>;
60 runExternalModule(filepath: string): Promise<any>;
61}
62
63export { ESModulesRunner, ModuleCacheMap, ResolvedResult, ViteModuleRunner, ViteRuntime, ViteRuntimeModuleContext, ViteRuntimeOptions };
Note: See TracBrowser for help on using the repository browser.