|
1 | 1 | tests/cases/conformance/jsx/file.tsx(14,10): error TS2741: Property 'children' is missing in type '{ a: number; b: string; }' but required in type 'Prop'.
|
2 | 2 | tests/cases/conformance/jsx/file.tsx(17,11): error TS2710: 'children' are specified twice. The attribute named 'children' will be overwritten.
|
3 |
| -tests/cases/conformance/jsx/file.tsx(31,6): error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
4 |
| -tests/cases/conformance/jsx/file.tsx(37,6): error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
5 |
| -tests/cases/conformance/jsx/file.tsx(43,6): error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
6 |
| -tests/cases/conformance/jsx/file.tsx(49,6): error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
| 3 | +tests/cases/conformance/jsx/file.tsx(31,6): error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
| 4 | +tests/cases/conformance/jsx/file.tsx(37,6): error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
| 5 | +tests/cases/conformance/jsx/file.tsx(43,6): error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
| 6 | +tests/cases/conformance/jsx/file.tsx(49,6): error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
7 | 7 |
|
8 | 8 |
|
9 | 9 | ==== tests/cases/conformance/jsx/file.tsx (6 errors) ====
|
@@ -44,31 +44,31 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2746: Target JSX element exp
|
44 | 44 | let k2 =
|
45 | 45 | <Comp a={10} b="hi">
|
46 | 46 | ~~~~
|
47 |
| -!!! error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
| 47 | +!!! error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
48 | 48 | <div> My Div </div>
|
49 | 49 | {(name: string) => <div> My name {name} </div>}
|
50 | 50 | </Comp>;
|
51 | 51 |
|
52 | 52 | let k3 =
|
53 | 53 | <Comp a={10} b="hi">
|
54 | 54 | ~~~~
|
55 |
| -!!! error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
| 55 | +!!! error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
56 | 56 | <div> My Div </div>
|
57 | 57 | {1000000}
|
58 | 58 | </Comp>;
|
59 | 59 |
|
60 | 60 | let k4 =
|
61 | 61 | <Comp a={10} b="hi" >
|
62 | 62 | ~~~~
|
63 |
| -!!! error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
| 63 | +!!! error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
64 | 64 | <div> My Div </div>
|
65 | 65 | hi hi hi!
|
66 | 66 | </Comp>;
|
67 | 67 |
|
68 | 68 | let k5 =
|
69 | 69 | <Comp a={10} b="hi" >
|
70 | 70 | ~~~~
|
71 |
| -!!! error TS2746: Target JSX element expects children prop of type string | Element, but multiple children were provided. |
| 71 | +!!! error TS2746: Target JSX element expects a 'children' prop of type 'string | Element', but multiple children were provided. |
72 | 72 | <div> My Div </div>
|
73 | 73 | <div> My Div </div>
|
74 | 74 | </Comp>;
|
0 commit comments