UNPKG

@endo/compartment-mapper

Version:

The compartment mapper assembles Node applications in a sandbox

48 lines 1.93 kB
/** * @overload * @param {ReadNowPowers} readPowers * @param {string} moduleLocation * @param {SyncArchiveOptions} options * @returns {Promise<Application>} */ export function loadLocation(readPowers: ReadNowPowers, moduleLocation: string, options: SyncArchiveOptions): Promise<Application>; /** * @overload * @param {ReadFn | ReadPowers} readPowers * @param {string} moduleLocation * @param {LoadLocationOptions} [options] * @returns {Promise<Application>} */ export function loadLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: LoadLocationOptions | undefined): Promise<Application>; /** * Allows dynamic requires * * @overload * @param {ReadNowPowers} readPowers * @param {string} moduleLocation * @param {SyncImportLocationOptions} options * @returns {Promise<SomeObject>} the object of the imported modules exported * names. */ export function importLocation(readPowers: ReadNowPowers, moduleLocation: string, options: SyncImportLocationOptions): Promise<SomeObject>; /** * Disallows dynamic requires * * @overload * @param {ReadPowers|ReadFn} readPowers * @param {string} moduleLocation * @param {ImportLocationOptions} [options] * @returns {Promise<SomeObject>} the object of the imported modules exported * names. */ export function importLocation(readPowers: ReadPowers | ReadFn, moduleLocation: string, options?: ImportLocationOptions | undefined): Promise<SomeObject>; import type { ReadNowPowers } from './types.js'; import type { SyncArchiveOptions } from './types.js'; import type { Application } from './types.js'; import type { ReadFn } from './types.js'; import type { ReadPowers } from './types.js'; import type { LoadLocationOptions } from './types.js'; import type { SyncImportLocationOptions } from './types.js'; import type { SomeObject } from './types.js'; import type { ImportLocationOptions } from './types.js'; //# sourceMappingURL=import.d.ts.map