source: imaps-frontend/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts@ 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: 910 bytes
Line 
1export class ModuleImporter {
2 /**
3 * Creates a new instance.
4 * @param {string} [cwd] The current working directory to resolve from.
5 */
6 constructor(cwd?: string);
7 /**
8 * The base directory from which paths should be resolved.
9 * @type {string}
10 */
11 cwd: string;
12 /**
13 * Resolves a module based on its name or location.
14 * @param {string} specifier Either an npm package name or
15 * relative file path.
16 * @returns {string|undefined} The location of the import.
17 * @throws {Error} If specifier cannot be located.
18 */
19 resolve(specifier: string): string | undefined;
20 /**
21 * Imports a module based on its name or location.
22 * @param {string} specifier Either an npm package name or
23 * relative file path.
24 * @returns {Promise<object>} The module's object.
25 */
26 import(specifier: string): Promise<object>;
27}
Note: See TracBrowser for help on using the repository browser.