index.d.ts 754 B

12345678910111213141516171819
  1. /**
  2. * Match `import.meta.resolve` except that `parent` is required (you can pass
  3. * `import.meta.url`).
  4. *
  5. * @param {string} specifier
  6. * The module specifier to resolve relative to parent
  7. * (`/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`,
  8. * etc).
  9. * @param {string} parent
  10. * The absolute parent module URL to resolve from.
  11. * You must pass `import.meta.url` or something else.
  12. * @returns {string}
  13. * Returns a string to a full `file:`, `data:`, or `node:` URL
  14. * to the found thing.
  15. */
  16. export function resolve(specifier: string, parent: string): string;
  17. export { moduleResolve } from "./lib/resolve.js";
  18. export type ErrnoException = import("./lib/errors.js").ErrnoException;
  19. //# sourceMappingURL=index.d.ts.map