Skip to content

Commit 8e98943

Browse files
Accepted baselines.
1 parent 6d2c003 commit 8e98943

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

tests/baselines/reference/checkJsxChildrenProperty2.errors.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ tests/cases/conformance/jsx/file.tsx(17,11): error TS2710: 'children' are specif
33
tests/cases/conformance/jsx/file.tsx(31,6): error TS2322: Type '{ children: (Element | ((name: string) => Element))[]; a: number; b: string; }' is not assignable to type 'Prop'.
44
Types of property 'children' are incompatible.
55
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
6-
Type '(Element | ((name: string) => Element))[]' is missing the following properties from type 'Element': type, props
6+
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string'.
77
tests/cases/conformance/jsx/file.tsx(37,6): error TS2322: Type '{ children: (number | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
88
Types of property 'children' are incompatible.
99
Type '(number | Element)[]' is not assignable to type 'string | Element'.
10-
Type '(number | Element)[]' is missing the following properties from type 'Element': type, props
10+
Type '(number | Element)[]' is not assignable to type 'string'.
1111
tests/cases/conformance/jsx/file.tsx(43,6): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
1212
Types of property 'children' are incompatible.
1313
Type '(string | Element)[]' is not assignable to type 'string | Element'.
14-
Type '(string | Element)[]' is missing the following properties from type 'Element': type, props
14+
Type '(string | Element)[]' is not assignable to type 'string'.
1515
tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'Prop'.
1616
Types of property 'children' are incompatible.
1717
Type 'Element[]' is not assignable to type 'string | Element'.
18-
Type 'Element[]' is missing the following properties from type 'Element': type, props
18+
Type 'Element[]' is not assignable to type 'string'.
1919

2020

2121
==== tests/cases/conformance/jsx/file.tsx (6 errors) ====
@@ -59,7 +59,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
5959
!!! error TS2322: Type '{ children: (Element | ((name: string) => Element))[]; a: number; b: string; }' is not assignable to type 'Prop'.
6060
!!! error TS2322: Types of property 'children' are incompatible.
6161
!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
62-
!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is missing the following properties from type 'Element': type, props
62+
!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string'.
6363
<div> My Div </div>
6464
{(name: string) => <div> My name {name} </div>}
6565
</Comp>;
@@ -70,7 +70,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
7070
!!! error TS2322: Type '{ children: (number | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
7171
!!! error TS2322: Types of property 'children' are incompatible.
7272
!!! error TS2322: Type '(number | Element)[]' is not assignable to type 'string | Element'.
73-
!!! error TS2322: Type '(number | Element)[]' is missing the following properties from type 'Element': type, props
73+
!!! error TS2322: Type '(number | Element)[]' is not assignable to type 'string'.
7474
<div> My Div </div>
7575
{1000000}
7676
</Comp>;
@@ -81,7 +81,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
8181
!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
8282
!!! error TS2322: Types of property 'children' are incompatible.
8383
!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'string | Element'.
84-
!!! error TS2322: Type '(string | Element)[]' is missing the following properties from type 'Element': type, props
84+
!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'string'.
8585
<div> My Div </div>
8686
hi hi hi!
8787
</Comp>;
@@ -92,7 +92,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
9292
!!! error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'Prop'.
9393
!!! error TS2322: Types of property 'children' are incompatible.
9494
!!! error TS2322: Type 'Element[]' is not assignable to type 'string | Element'.
95-
!!! error TS2322: Type 'Element[]' is missing the following properties from type 'Element': type, props
95+
!!! error TS2322: Type 'Element[]' is not assignable to type 'string'.
9696
<div> My Div </div>
9797
<div> My Div </div>
9898
</Comp>;

tests/baselines/reference/iteratorSpreadInArray6.errors.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts(15,14): error TS2345: Argument of type 'symbol[]' is not assignable to parameter of type 'number | ConcatArray<number>'.
2-
Type 'symbol[]' is not assignable to type 'number'.
2+
Type 'symbol[]' is not assignable to type 'ConcatArray<number>'.
3+
Types of property 'slice' are incompatible.
4+
Type '(start?: number, end?: number) => symbol[]' is not assignable to type '(start?: number, end?: number) => number[]'.
5+
Type 'symbol[]' is not assignable to type 'number[]'.
6+
Type 'symbol' is not assignable to type 'number'.
37

48

59
==== tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts (1 errors) ====
@@ -20,4 +24,8 @@ tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts(15,14): error TS234
2024
array.concat([...new SymbolIterator]);
2125
~~~~~~~~~~~~~~~~~~~~~~~
2226
!!! error TS2345: Argument of type 'symbol[]' is not assignable to parameter of type 'number | ConcatArray<number>'.
23-
!!! error TS2345: Type 'symbol[]' is not assignable to type 'number'.
27+
!!! error TS2345: Type 'symbol[]' is not assignable to type 'ConcatArray<number>'.
28+
!!! error TS2345: Types of property 'slice' are incompatible.
29+
!!! error TS2345: Type '(start?: number, end?: number) => symbol[]' is not assignable to type '(start?: number, end?: number) => number[]'.
30+
!!! error TS2345: Type 'symbol[]' is not assignable to type 'number[]'.
31+
!!! error TS2345: Type 'symbol' is not assignable to type 'number'.

0 commit comments

Comments
 (0)