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'?
2
2
/a.js(12,15): error TS2749: 'Require' refers to a value, but is being used as a type here. Did you mean 'typeof Require'?
3
3
4
4
22
22
23
23
==== /a.js (2 errors) ====
24
24
/** @import { Import } from 'foo' with { 'resolution-mode': 'import' } */
25
- ~~~~~
26
- !!! error TS2307: Cannot find module 'foo' or its corresponding type declarations.
27
25
/** @import { Require } from 'foo' with { 'resolution-mode': 'require' } */
28
26
29
27
/**
30
28
* @returns { Import }
29
+ ~~~~~~
30
+ !!! error TS2749: 'Import' refers to a value, but is being used as a type here. Did you mean 'typeof Import'?
31
31
*/
32
32
export function f1() {
33
33
return 1;
Original file line number Diff line number Diff line change 3
3
@@= skipped -0, +0 lines =@@
4
4
- /a.js(8,5): error TS2322: Type '1' is not assignable to type '"module"'.
5
5
- /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'?
7
7
+ /a.js(12,15): error TS2749: 'Require' refers to a value, but is being used as a type here. Did you mean 'typeof Require'?
8
8
9
9
10
10
==== /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 =@@
18
12
19
13
/**
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'?
21
17
*/
22
18
export function f1() {
23
19
return 1;
You can’t perform that action at this time.
0 commit comments