Skip to content

Commit f528dfc

Browse files
committed
remove extra overload
1 parent 34c442f commit f528dfc

5 files changed

Lines changed: 3 additions & 15 deletions

File tree

types/node/v16/module.d.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,6 @@ declare module "module" {
204204
global {
205205
interface ImportMeta extends ImportMetaDOMCompat {
206206
url: string;
207-
/**
208-
* @experimental
209-
* This feature is only available with the `--experimental-import-meta-resolve`
210-
* command flag enabled.
211-
*
212-
* Provides a module-relative resolution function scoped to each module, returning
213-
* the URL string.
214-
*
215-
* @param specified The module specifier to resolve relative to `parent`.
216-
* @param parent The absolute parent module URL to resolve from. If none
217-
* is specified, the value of `import.meta.url` is used as the default.
218-
*/
219-
resolve(specified: string, parent?: string | URL): Promise<string>;
220207
}
221208
}
222209
export = Module;

types/node/v16/test/module-dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import { URL } from "node:url";
55
const importmeta: ImportMeta = {} as any; // Fake because we cannot really access the true `import.meta` with the current build target
66
importmeta.url; // $ExpectType string
77
importmeta.resolve!("local"); // $ExpectType Promise<string> || string
8-
importmeta.resolve!("local"); // $ExpectType Promise<string> || string
98
}
9+

types/node/v16/test/module-non-dom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { URL } from "node:url";
44
{
55
const importmeta: ImportMeta = {} as any; // Fake because we cannot really access the true `import.meta` with the current build target
66
importmeta.url; // $ExpectType string
7+
importmeta.resolve!("local"); // $ExpectType Promise<string>
78
importmeta.resolve!("local", "/parent"); // $ExpectType Promise<string>
89
importmeta.resolve!("local", new URL("https://parent.module")); // $ExpectType Promise<string>
910
}

types/node/v18/test/module-dom.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ import { URL } from "node:url";
55
const importmeta: ImportMeta = {} as any; // Fake because we cannot really access the true `import.meta` with the current build target
66
importmeta.url; // $ExpectType string
77
importmeta.resolve!("local"); // $ExpectType Promise<string> || string
8-
importmeta.resolve!("local"); // $ExpectType Promise<string> || string
98
}

types/node/v18/test/module-non-dom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { URL } from "node:url";
44
{
55
const importmeta: ImportMeta = {} as any; // Fake because we cannot really access the true `import.meta` with the current build target
66
importmeta.url; // $ExpectType string
7+
importmeta.resolve!("local"); // $ExpectType Promise<string>
78
importmeta.resolve!("local", "/parent"); // $ExpectType Promise<string>
89
importmeta.resolve!("local", new URL("https://parent.module")); // $ExpectType Promise<string>
910
}

0 commit comments

Comments
 (0)