Skip to content

Commit b4fce08

Browse files
author
Kanchalai Tanglertsampan
committed
Update baselines
1 parent d5ae6d1 commit b4fce08

14 files changed

+66
-82
lines changed

tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,24): err
22
Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'LinkProps'.
33
Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
44
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,24): error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
5-
Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'.
5+
Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'LinkProps'.
6+
Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
67
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
7-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,24): error TS2322: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
8-
Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
8+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,36): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
99
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(33,65): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
1010
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
1111

@@ -45,14 +45,14 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): err
4545
const b2 = <MainButton onClick={(k)=>{console.log(k)}} extra />; // k has type "left" | "right"
4646
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4747
!!! error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
48-
!!! error TS2322: Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'.
48+
!!! error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'LinkProps'.
49+
!!! error TS2322: Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
4950
const b3 = <MainButton {...{goTo:"home"}} extra />; // goTo has type"home" | "contact"
5051
~~~~~
5152
!!! error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
5253
const b4 = <MainButton goTo="home" extra />; // goTo has type "home" | "contact"
53-
~~~~~~~~~~~~~~~~~
54-
!!! error TS2322: Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
55-
!!! error TS2322: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
54+
~~~~~
55+
!!! error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
5656

5757
export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined }
5858
const c1 = <NoOverload {...{onClick: (k) => {console.log(k)}}} extra />; // k has type any

tests/baselines/reference/tsxAttributeResolution1.errors.txt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
tests/cases/conformance/jsx/file.tsx(23,8): error TS2322: Type '{ x: "0"; }' is not assignable to type 'Attribs1'.
22
Types of property 'x' are incompatible.
33
Type '"0"' is not assignable to type 'number'.
4-
tests/cases/conformance/jsx/file.tsx(24,8): error TS2322: Type '{ y: 0; }' is not assignable to type 'Attribs1'.
5-
Property 'y' does not exist on type 'Attribs1'.
6-
tests/cases/conformance/jsx/file.tsx(25,8): error TS2322: Type '{ y: "foo"; }' is not assignable to type 'Attribs1'.
7-
Property 'y' does not exist on type 'Attribs1'.
4+
tests/cases/conformance/jsx/file.tsx(24,8): error TS2339: Property 'y' does not exist on type 'Attribs1'.
5+
tests/cases/conformance/jsx/file.tsx(25,8): error TS2339: Property 'y' does not exist on type 'Attribs1'.
86
tests/cases/conformance/jsx/file.tsx(26,8): error TS2322: Type '{ x: "32"; }' is not assignable to type 'Attribs1'.
97
Types of property 'x' are incompatible.
108
Type '"32"' is not assignable to type 'number'.
11-
tests/cases/conformance/jsx/file.tsx(27,8): error TS2322: Type '{ var: "10"; }' is not assignable to type 'Attribs1'.
12-
Property 'var' does not exist on type 'Attribs1'.
9+
tests/cases/conformance/jsx/file.tsx(27,8): error TS2339: Property 'var' does not exist on type 'Attribs1'.
1310
tests/cases/conformance/jsx/file.tsx(29,1): error TS2322: Type '{}' is not assignable to type '{ reqd: string; }'.
1411
Property 'reqd' is missing in type '{}'.
1512
tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type '{ reqd: 10; }' is not assignable to type '{ reqd: string; }'.
@@ -47,21 +44,18 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type '{ reqd: 10; }' i
4744
!!! error TS2322: Type '"0"' is not assignable to type 'number'.
4845
<test1 y={0} />; // Error, no property "y"
4946
~~~~~
50-
!!! error TS2322: Type '{ y: 0; }' is not assignable to type 'Attribs1'.
51-
!!! error TS2322: Property 'y' does not exist on type 'Attribs1'.
47+
!!! error TS2339: Property 'y' does not exist on type 'Attribs1'.
5248
<test1 y="foo" />; // Error, no property "y"
5349
~~~~~~~
54-
!!! error TS2322: Type '{ y: "foo"; }' is not assignable to type 'Attribs1'.
55-
!!! error TS2322: Property 'y' does not exist on type 'Attribs1'.
50+
!!! error TS2339: Property 'y' does not exist on type 'Attribs1'.
5651
<test1 x="32" />; // Error, "32" is not number
5752
~~~~~~
5853
!!! error TS2322: Type '{ x: "32"; }' is not assignable to type 'Attribs1'.
5954
!!! error TS2322: Types of property 'x' are incompatible.
6055
!!! error TS2322: Type '"32"' is not assignable to type 'number'.
6156
<test1 var="10" />; // Error, no 'var' property
6257
~~~~~~~~
63-
!!! error TS2322: Type '{ var: "10"; }' is not assignable to type 'Attribs1'.
64-
!!! error TS2322: Property 'var' does not exist on type 'Attribs1'.
58+
!!! error TS2339: Property 'var' does not exist on type 'Attribs1'.
6559

6660
<test2 />; // Error, missing reqd
6761
~~~~~~~~~

tests/baselines/reference/tsxAttributeResolution11.errors.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
tests/cases/conformance/jsx/file.tsx(11,22): error TS2322: Type '{ bar: "world"; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'.
2-
Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'.
1+
tests/cases/conformance/jsx/file.tsx(11,22): error TS2339: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'.
32

43

54
==== tests/cases/conformance/jsx/react.d.ts (0 errors) ====
@@ -28,7 +27,6 @@ tests/cases/conformance/jsx/file.tsx(11,22): error TS2322: Type '{ bar: "world";
2827
// Should be an OK
2928
var x = <MyComponent bar='world' />;
3029
~~~~~~~~~~~
31-
!!! error TS2322: Type '{ bar: "world"; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'.
32-
!!! error TS2322: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'.
30+
!!! error TS2339: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'.
3331

3432

tests/baselines/reference/tsxAttributeResolution15.errors.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
tests/cases/conformance/jsx/file.tsx(11,21): error TS2322: Type '{ prop1: "hello"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
2-
Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
1+
tests/cases/conformance/jsx/file.tsx(11,21): error TS2339: Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
32

43

54
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -15,8 +14,7 @@ tests/cases/conformance/jsx/file.tsx(11,21): error TS2322: Type '{ prop1: "hello
1514
// Error
1615
let a = <BigGreeter prop1="hello" />
1716
~~~~~~~~~~~~~
18-
!!! error TS2322: Type '{ prop1: "hello"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
19-
!!! error TS2322: Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
17+
!!! error TS2339: Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
2018

2119
// OK
2220
let b = <BigGreeter ref={(input) => { this.textInput = input; }} />

tests/baselines/reference/tsxElementResolution11.errors.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
tests/cases/conformance/jsx/file.tsx(17,7): error TS2322: Type '{ x: 10; }' is not assignable to type '{ q?: number; }'.
2-
Property 'x' does not exist on type '{ q?: number; }'.
1+
tests/cases/conformance/jsx/file.tsx(17,7): error TS2339: Property 'x' does not exist on type '{ q?: number; }'.
32

43

54
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -21,8 +20,7 @@ tests/cases/conformance/jsx/file.tsx(17,7): error TS2322: Type '{ x: 10; }' is n
2120
var Obj2: Obj2type;
2221
<Obj2 x={10} />; // Error
2322
~~~~~~
24-
!!! error TS2322: Type '{ x: 10; }' is not assignable to type '{ q?: number; }'.
25-
!!! error TS2322: Property 'x' does not exist on type '{ q?: number; }'.
23+
!!! error TS2339: Property 'x' does not exist on type '{ q?: number; }'.
2624

2725
interface Obj3type {
2826
new(n: string): { x: number; };

tests/baselines/reference/tsxElementResolution3.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/jsx/file.tsx(12,7): error TS2322: Type '{ w: "err"; }' is not assignable to type '{ n: string; }'.
2-
Property 'w' does not exist on type '{ n: string; }'.
2+
Property 'n' is missing in type '{ w: "err"; }'.
33

44

55
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -17,4 +17,4 @@ tests/cases/conformance/jsx/file.tsx(12,7): error TS2322: Type '{ w: "err"; }' i
1717
<span w='err' />;
1818
~~~~~~~
1919
!!! error TS2322: Type '{ w: "err"; }' is not assignable to type '{ n: string; }'.
20-
!!! error TS2322: Property 'w' does not exist on type '{ n: string; }'.
20+
!!! error TS2322: Property 'n' is missing in type '{ w: "err"; }'.

tests/baselines/reference/tsxElementResolution4.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/jsx/file.tsx(16,7): error TS2322: Type '{ q: ""; }' is not assignable to type '{ m: string; }'.
2-
Property 'q' does not exist on type '{ m: string; }'.
2+
Property 'm' is missing in type '{ q: ""; }'.
33

44

55
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -21,5 +21,5 @@ tests/cases/conformance/jsx/file.tsx(16,7): error TS2322: Type '{ q: ""; }' is n
2121
<span q='' />;
2222
~~~~
2323
!!! error TS2322: Type '{ q: ""; }' is not assignable to type '{ m: string; }'.
24-
!!! error TS2322: Property 'q' does not exist on type '{ m: string; }'.
24+
!!! error TS2322: Property 'm' is missing in type '{ q: ""; }'.
2525

tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
tests/cases/conformance/jsx/file.tsx(16,17): error TS2322: Type '{ a: 10; b: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
2-
Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
3-
tests/cases/conformance/jsx/file.tsx(17,18): error TS2322: Type '{ a: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
4-
Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
1+
tests/cases/conformance/jsx/file.tsx(16,17): error TS2339: Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
2+
tests/cases/conformance/jsx/file.tsx(17,18): error TS2339: Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
53

64

75
==== tests/cases/conformance/jsx/file.tsx (2 errors) ====
@@ -21,10 +19,8 @@ tests/cases/conformance/jsx/file.tsx(17,18): error TS2322: Type '{ a: "hi"; }' i
2119

2220
// Error
2321
let x = <MyComp a={10} b="hi" />
24-
~~~~~~~~~~~~~
25-
!!! error TS2322: Type '{ a: 10; b: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
26-
!!! error TS2322: Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
22+
~~~~~~
23+
!!! error TS2339: Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
2724
let x2 = <MyComp a="hi"/>
2825
~~~~~~
29-
!!! error TS2322: Type '{ a: "hi"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
30-
!!! error TS2322: Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.
26+
!!! error TS2339: Property 'a' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<MyComp<{}>> & { children?: ReactNode; }'.

tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tests/cases/conformance/jsx/file.tsx(12,22): error TS2322: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
2-
Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
2+
Type '{ extraProp: true; }' is not assignable to type '{ yy: number; yy1: string; }'.
3+
Property 'yy' is missing in type '{ extraProp: true; }'.
34
tests/cases/conformance/jsx/file.tsx(13,22): error TS2322: Type '{ yy: 10; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
45
Type '{ yy: 10; }' is not assignable to type '{ yy: number; yy1: string; }'.
56
Property 'yy1' is missing in type '{ yy: 10; }'.
@@ -28,9 +29,13 @@ tests/cases/conformance/jsx/file.tsx(34,29): error TS2322: Type '{ y1: "hello";
2829
Types of property 'y1' are incompatible.
2930
Type '"hello"' is not assignable to type 'boolean'.
3031
tests/cases/conformance/jsx/file.tsx(35,29): error TS2322: Type '{ y1: "hello"; y2: 1000; children: "hi"; }' is not assignable to type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
31-
Property 'children' does not exist on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
32+
Type '{ y1: "hello"; y2: 1000; children: "hi"; }' is not assignable to type '{ y1: boolean; y2?: number; y3: boolean; }'.
33+
Types of property 'y1' are incompatible.
34+
Type '"hello"' is not assignable to type 'boolean'.
3235
tests/cases/conformance/jsx/file.tsx(36,29): error TS2322: Type '{ y1: "hello"; y2: 1000; children: string; }' is not assignable to type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
33-
Property 'children' does not exist on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
36+
Type '{ y1: "hello"; y2: 1000; children: string; }' is not assignable to type '{ y1: boolean; y2?: number; y3: boolean; }'.
37+
Types of property 'y1' are incompatible.
38+
Type '"hello"' is not assignable to type 'boolean'.
3439

3540

3641
==== tests/cases/conformance/jsx/file.tsx (11 errors) ====
@@ -48,7 +53,8 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2322: Type '{ y1: "hello";
4853
const c0 = <OneThing extraProp />; // extra property;
4954
~~~~~~~~~
5055
!!! error TS2322: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
51-
!!! error TS2322: Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
56+
!!! error TS2322: Type '{ extraProp: true; }' is not assignable to type '{ yy: number; yy1: string; }'.
57+
!!! error TS2322: Property 'yy' is missing in type '{ extraProp: true; }'.
5258
const c1 = <OneThing yy={10}/>; // missing property;
5359
~~~~~~~
5460
!!! error TS2322: Type '{ yy: 10; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
@@ -109,9 +115,13 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2322: Type '{ y1: "hello";
109115
const e3 = <TestingOptional y1="hello" y2={1000} children="hi" />
110116
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
111117
!!! error TS2322: Type '{ y1: "hello"; y2: 1000; children: "hi"; }' is not assignable to type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
112-
!!! error TS2322: Property 'children' does not exist on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
118+
!!! error TS2322: Type '{ y1: "hello"; y2: 1000; children: "hi"; }' is not assignable to type '{ y1: boolean; y2?: number; y3: boolean; }'.
119+
!!! error TS2322: Types of property 'y1' are incompatible.
120+
!!! error TS2322: Type '"hello"' is not assignable to type 'boolean'.
113121
const e4 = <TestingOptional y1="hello" y2={1000}>Hi</TestingOptional>
114122
~~~~~~~~~~~~~~~~~~~~
115123
!!! error TS2322: Type '{ y1: "hello"; y2: 1000; children: string; }' is not assignable to type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
116-
!!! error TS2322: Property 'children' does not exist on type 'IntrinsicAttributes & { y1: boolean; y2?: number; y3: boolean; }'.
124+
!!! error TS2322: Type '{ y1: "hello"; y2: 1000; children: string; }' is not assignable to type '{ y1: boolean; y2?: number; y3: boolean; }'.
125+
!!! error TS2322: Types of property 'y1' are incompatible.
126+
!!! error TS2322: Type '"hello"' is not assignable to type 'boolean'.
117127

tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tests/cases/conformance/jsx/file.tsx(48,24): error TS2322: Type '{ to: "/some/path"; onClick: (e: MouseEvent<any>) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'.
2-
Property 'to' does not exist on type 'IntrinsicAttributes & HyphenProps'.
2+
Type '{ to: "/some/path"; onClick: (e: MouseEvent<any>) => void; children: string; }' is not assignable to type 'HyphenProps'.
3+
Property '"data-format"' is missing in type '{ to: "/some/path"; onClick: (e: MouseEvent<any>) => void; children: string; }'.
34
tests/cases/conformance/jsx/file.tsx(49,24): error TS2322: Type '{ to: string; onClick: (e: any) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'.
45
Type '{ to: string; onClick: (e: any) => void; children: string; }' is not assignable to type 'HyphenProps'.
56
Property '"data-format"' is missing in type '{ to: string; onClick: (e: any) => void; children: string; }'.
@@ -75,7 +76,8 @@ tests/cases/conformance/jsx/file.tsx(56,24): error TS2322: Type '{ data-format:
7576
const b0 = <MainButton to='/some/path' onClick={(e)=>{}}>GO</MainButton>; // extra property;
7677
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7778
!!! error TS2322: Type '{ to: "/some/path"; onClick: (e: MouseEvent<any>) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'.
78-
!!! error TS2322: Property 'to' does not exist on type 'IntrinsicAttributes & HyphenProps'.
79+
!!! error TS2322: Type '{ to: "/some/path"; onClick: (e: MouseEvent<any>) => void; children: string; }' is not assignable to type 'HyphenProps'.
80+
!!! error TS2322: Property '"data-format"' is missing in type '{ to: "/some/path"; onClick: (e: MouseEvent<any>) => void; children: string; }'.
7981
const b1 = <MainButton onClick={(e: any)=> {}} {...obj0}>Hello world</MainButton>; // extra property;
8082
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8183
!!! error TS2322: Type '{ to: string; onClick: (e: any) => void; children: string; }' is not assignable to type 'IntrinsicAttributes & HyphenProps'.

0 commit comments

Comments
 (0)