@endo/compartment-mapper
Version:
The compartment mapper assembles Node applications in a sandbox
26 lines • 1.32 kB
TypeScript
/**
* @overload
* @param {ReadNowPowers} readPowers
* @param {CompartmentMapDescriptor} compartmentMap
* @param {SyncImportLocationOptions} [opts]
* @returns {Promise<Application>}
*/
export function loadFromMap(readPowers: ReadNowPowers, compartmentMap: CompartmentMapDescriptor, opts?: SyncImportLocationOptions | undefined): Promise<Application>;
/**
* @overload
* @param {ReadFn | ReadPowers} readPowers
* @param {CompartmentMapDescriptor} compartmentMap
* @param {ImportLocationOptions} [opts]
* @returns {Promise<Application>}
*/
export function loadFromMap(readPowers: ReadFn | ReadPowers, compartmentMap: CompartmentMapDescriptor, opts?: ImportLocationOptions | undefined): Promise<Application>;
export function importFromMap(readPowers: ReadFn | ReadPowers, compartmentMap: CompartmentMapDescriptor, options?: ImportLocationOptions): Promise<SomeObject>;
import type { ReadNowPowers } from './types.js';
import type { CompartmentMapDescriptor } from './types.js';
import type { SyncImportLocationOptions } from './types.js';
import type { Application } from './types.js';
import type { ReadFn } from './types.js';
import type { ReadPowers } from './types.js';
import type { ImportLocationOptions } from './types.js';
import type { SomeObject } from './types.js';
//# sourceMappingURL=import-lite.d.ts.map