Skip to content

Commit 097e4da

Browse files
committed
Update baselines
1 parent 272a4c8 commit 097e4da

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

testdata/baselines/reference/submodule/conformance/importTag17.errors.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

@@ -22,12 +22,12 @@
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;

testdata/baselines/reference/submoduleAccepted/conformance/importTag17.errors.txt.diff

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@
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;

0 commit comments

Comments
 (0)