File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
testdata/baselines/reference
submoduleAccepted/conformance Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1- /a.js(1,29 ): error TS2307: Cannot find module 'foo' or its corresponding type declarations.
1+ /a.js(5,15 ): error TS2749: 'Import' refers to a value, but is being used as a type here. Did you mean 'typeof Import'?
22/a.js(12,15): error TS2749: 'Require' refers to a value, but is being used as a type here. Did you mean 'typeof Require'?
33
44
2222
2323==== /a.js (2 errors) ====
2424 /** @import { Import } from 'foo' with { 'resolution-mode': 'import' } */
25- ~~~~~
26- !!! error TS2307: Cannot find module 'foo' or its corresponding type declarations.
2725 /** @import { Require } from 'foo' with { 'resolution-mode': 'require' } */
2826
2927 /**
3028 * @returns { Import }
29+ ~~~~~~
30+ !!! error TS2749: 'Import' refers to a value, but is being used as a type here. Did you mean 'typeof Import'?
3131 */
3232 export function f1() {
3333 return 1;
Original file line number Diff line number Diff line change 33@@= skipped -0, +0 lines =@@
44- /a.js(8,5): error TS2322: Type '1' is not assignable to type '"module"'.
55- /a.js(15,5): error TS2322: Type '1' is not assignable to type '"script"'.
6- + /a.js(1,29 ): error TS2307: Cannot find module 'foo' or its corresponding type declarations.
6+ + /a.js(5,15 ): error TS2749: 'Import' refers to a value, but is being used as a type here. Did you mean 'typeof Import'?
77+ /a.js(12,15): error TS2749: 'Require' refers to a value, but is being used as a type here. Did you mean 'typeof Require'?
88
99
1010 ==== /node_modules/@types/foo/package.json (0 errors) ====
11- @@= skipped -21, +21 lines =@@
12-
13- ==== /a.js (2 errors) ====
14- /** @import { Import } from 'foo' with { 'resolution-mode': 'import' } */
15- + ~~~~~
16- + !!! error TS2307: Cannot find module 'foo' or its corresponding type declarations.
17- /** @import { Require } from 'foo' with { 'resolution-mode': 'require' } */
11+ @@= skipped -25, +25 lines =@@
1812
1913 /**
20- @@= skipped -7, +9 lines =@@
14+ * @returns { Import }
15+ + ~~~~~~
16+ + !!! error TS2749: 'Import' refers to a value, but is being used as a type here. Did you mean 'typeof Import'?
2117 */
2218 export function f1() {
2319 return 1;
You can’t perform that action at this time.
0 commit comments