Skip to content

Commit ea4fd57

Browse files
committed
Accept new baselines
1 parent 990a9c2 commit ea4fd57

8 files changed

+24
-34
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/a.js(21,44): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T1'.
2-
/a.js(22,38): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
2+
/a.js(22,28): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
33
/a.js(31,49): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T4'.
44

55

@@ -28,7 +28,7 @@
2828
~
2929
!!! error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T1'.
3030
const t3 = /** @satisfies {T1} */ ({});
31-
~
31+
~~
3232
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
3333
!!! related TS2728 /a.js:3:23: 'a' is declared here.
3434

testdata/baselines/reference/submodule/conformance/checkJsdocSatisfiesTag1.errors.txt.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/a.js(21,44): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T1'.
55
-/a.js(22,17): error TS1360: Type '{}' does not satisfy the expected type 'T1'.
66
- Property 'a' is missing in type '{}' but required in type 'T1'.
7-
+/a.js(22,38): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
7+
+/a.js(22,28): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
88
/a.js(31,49): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T4'.
99

1010

@@ -16,7 +16,7 @@
1616
-!!! error TS1360: Type '{}' does not satisfy the expected type 'T1'.
1717
-!!! error TS1360: Property 'a' is missing in type '{}' but required in type 'T1'.
1818
-!!! related TS2728 /a.js:3:4: 'a' is declared here.
19-
+ ~
19+
+ ~~
2020
+!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
2121
+!!! related TS2728 /a.js:3:23: 'a' is declared here.
2222

testdata/baselines/reference/submodule/conformance/checkJsdocSatisfiesTag11.types

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
const t1 = { a: 1 };
1919
>t1 : { a: number; }
2020
>{ a: 1 } : { a: number; }
21-
>{ a: 1 } : { a: number; }
2221
>a : number
2322
>1 : 1
2423

testdata/baselines/reference/submodule/conformance/checkJsdocSatisfiesTag11.types.diff

Lines changed: 0 additions & 9 deletions
This file was deleted.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/a.js(24,20): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T1'.
2-
/a.js(29,14): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
2+
/a.js(27,16): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
33
/a.js(44,25): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T2'.
4-
/a.js(51,42): error TS1360: Type 'number' does not satisfy the expected type 'string'.
4+
/a.js(51,17): error TS1360: Type 'number' does not satisfy the expected type 'string'.
55

66

77
==== /a.js (4 errors) ====
@@ -34,11 +34,11 @@
3434

3535
/**
3636
* @satisfies {T1}
37-
*/
38-
const t3 = {};
39-
~
37+
~~
4038
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
4139
!!! related TS2728 /a.js:3:23: 'a' is declared here.
40+
*/
41+
const t3 = {};
4242

4343
/**
4444
* @satisfies {Array.<number, number>}
@@ -63,6 +63,6 @@
6363
const t7 = { a: "a" };
6464

6565
/** @satisfies {string} */ const t8 = (1);
66-
~
66+
~~~~~~
6767
!!! error TS1360: Type 'number' does not satisfy the expected type 'string'.
6868

testdata/baselines/reference/submodule/conformance/checkJsdocSatisfiesTag12.errors.txt.diff

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
+++ new.checkJsdocSatisfiesTag12.errors.txt
33
@@= skipped -0, +0 lines =@@
44
/a.js(24,20): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T1'.
5-
+/a.js(29,14): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
5+
+/a.js(27,16): error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
66
/a.js(44,25): error TS2353: Object literal may only specify known properties, and 'b' does not exist in type 'T2'.
77
-/a.js(51,6): error TS1360: Type 'number' does not satisfy the expected type 'string'.
88
-
99
-
1010
-==== /a.js (3 errors) ====
11-
+/a.js(51,42): error TS1360: Type 'number' does not satisfy the expected type 'string'.
11+
+/a.js(51,17): error TS1360: Type 'number' does not satisfy the expected type 'string'.
1212
+
1313
+
1414
+==== /a.js (4 errors) ====
1515
/**
1616
* @typedef {Object} T1
1717
* @property {number} a
18-
@@= skipped -34, +35 lines =@@
18+
@@= skipped -32, +33 lines =@@
19+
20+
/**
1921
* @satisfies {T1}
20-
*/
21-
const t3 = {};
22-
+ ~
22+
+ ~~
2323
+!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'T1'.
2424
+!!! related TS2728 /a.js:3:23: 'a' is declared here.
25+
*/
26+
const t3 = {};
2527

26-
/**
27-
* @satisfies {Array.<number, number>}
28-
@@= skipped -24, +27 lines =@@
28+
@@= skipped -26, +29 lines =@@
2929
const t7 = { a: "a" };
3030

3131
/** @satisfies {string} */ const t8 = (1);
3232
- ~~~~~~~~~
33-
+ ~
33+
+ ~~~~~~
3434
!!! error TS1360: Type 'number' does not satisfy the expected type 'string'.
3535

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/a.js(5,43): error TS2741: Property 'a' is missing in type '{}' but required in type 'Foo'.
1+
/a.js(5,32): error TS2741: Property 'a' is missing in type '{}' but required in type 'Foo'.
22

33

44
==== /a.js (1 errors) ====
@@ -7,7 +7,7 @@
77
* @property {number} a
88
*/
99
export default /** @satisfies {Foo} */ ({});
10-
~
10+
~~~
1111
!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'Foo'.
1212
!!! related TS2728 /a.js:3:23: 'a' is declared here.
1313

testdata/baselines/reference/submodule/conformance/checkJsdocSatisfiesTag4.errors.txt.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@@= skipped -0, +0 lines =@@
44
-/a.js(5,21): error TS1360: Type '{}' does not satisfy the expected type 'Foo'.
55
- Property 'a' is missing in type '{}' but required in type 'Foo'.
6-
+/a.js(5,43): error TS2741: Property 'a' is missing in type '{}' but required in type 'Foo'.
6+
+/a.js(5,32): error TS2741: Property 'a' is missing in type '{}' but required in type 'Foo'.
77

88

99
==== /a.js (1 errors) ====
@@ -15,7 +15,7 @@
1515
-!!! error TS1360: Type '{}' does not satisfy the expected type 'Foo'.
1616
-!!! error TS1360: Property 'a' is missing in type '{}' but required in type 'Foo'.
1717
-!!! related TS2728 /a.js:3:4: 'a' is declared here.
18-
+ ~
18+
+ ~~~
1919
+!!! error TS2741: Property 'a' is missing in type '{}' but required in type 'Foo'.
2020
+!!! related TS2728 /a.js:3:23: 'a' is declared here.
2121

0 commit comments

Comments
 (0)