import type { IPlaygroundDependencyPackage } from "./IPlaygroundDependencyPackage"; import type { IPlaygroundInstalledDependency } from "./IPlaygroundInstalledDependency"; /** Aggregate result returned by {@link installPlaygroundDependencies}. */ export interface IPlaygroundDependencyInstallResult { /** Complete exact state after merging installed packages with this call. */ resolvedDependencies: IPlaygroundInstalledDependency[]; /** Packages whose tarballs were downloaded and unpacked by this call. */ packages: IPlaygroundDependencyPackage[]; /** * `node_modules/...` keyed map of files to mount inside the wasm-side * compiler MemFS. */ compilerFiles: Record; /** * `file:///node_modules/...` keyed map of `.d.ts` + `package.json` files to * register with Monaco via `addExtraLib`. */ editorLibs: Record; /** * Package-rooted runtime files (e.g. `uuid/dist/index.js`) the in-page * execute sandbox `require` can resolve. */ runtimeFiles: Record; }