@@ -6,6 +6,8 @@ main.ts(6,22): error TS2307: Cannot find module './foo.ts' or its corresponding
6
6
main.ts(8,15): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
7
7
main.ts(10,8): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
8
8
main.ts(11,8): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
9
+ main.ts(13,18): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
10
+ main.ts(14,8): error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
9
11
no.ts(1,16): error TS2307: Cannot find module './foo.ts/foo.js' or its corresponding type declarations.
10
12
no.ts(2,16): error TS2307: Cannot find module 'foo.ts' or its corresponding type declarations.
11
13
no.ts(3,16): error TS2307: Cannot find module 'pkg/foo.ts' or its corresponding type declarations.
@@ -21,7 +23,7 @@ no.ts(11,8): error TS2307: Cannot find module 'node:path' or its corresponding t
21
23
==== globals.d.ts (0 errors) ====
22
24
declare function require(module: string): any;
23
25
24
- ==== main.ts (8 errors) ====
26
+ ==== main.ts (10 errors) ====
25
27
// Rewrite
26
28
import {} from "./foo.ts";
27
29
~~~~~~~~~~
@@ -45,6 +47,13 @@ no.ts(11,8): error TS2307: Cannot find module 'node:path' or its corresponding t
45
47
//Shim
46
48
import("./foo.ts");
47
49
~~~~~~~~~~
50
+ !!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
51
+ import("./foo.ts").then(() => {});
52
+ ~~~~~~~~~~
53
+ !!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
54
+ function acceptAny(arg: any) {}
55
+ acceptAny(import("./foo.ts"));
56
+ ~~~~~~~~~~
48
57
!!! error TS2307: Cannot find module './foo.ts' or its corresponding type declarations.
49
58
import("./foo.ts", { with: { attr: "value" } });
50
59
~~~~~~~~~~
0 commit comments