diff --git a/types/node/module.d.ts b/types/node/module.d.ts index d83aec94aae2df9..aa92bac7bf35dfa 100644 --- a/types/node/module.d.ts +++ b/types/node/module.d.ts @@ -92,18 +92,12 @@ declare module 'module' { interface ImportMeta { url: string; /** - * @experimental - * This feature is only available with the `--experimental-import-meta-resolve` - * command flag enabled. - * * Provides a module-relative resolution function scoped to each module, returning * the URL string. * - * @param specified The module specifier to resolve relative to `parent`. - * @param parent The absolute parent module URL to resolve from. If none - * is specified, the value of `import.meta.url` is used as the default. + * @param specified The module specifier to resolve relative to the current module's URL (`import.meta.url`). */ - resolve?(specified: string, parent?: string | URL): Promise; + resolve?(specified: string): string; } } export = Module;