You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type '{ a: 10; b: "hi"; }' is not assignable to type 'Prop'.
3
3
Property 'children' is missing in type '{ a: 10; b: "hi"; }'.
4
4
tests/cases/conformance/jsx/file.tsx(17,11): error TS2708: props.children are specified twice. The attribute named 'children' will be overwritten.
5
-
tests/cases/conformance/jsx/file.tsx(23,11): error TS2322: Type '{ a: 10; b: "hi"; children: (Element | ((name: string) => Element))[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
5
+
tests/cases/conformance/jsx/file.tsx(25,11): error TS2708: props.children are specified twice. The attribute named 'children' will be overwritten.
6
+
tests/cases/conformance/jsx/file.tsx(31,11): error TS2322: Type '{ a: 10; b: "hi"; children: (Element | ((name: string) => Element))[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
6
7
Type '{ a: 10; b: "hi"; children: (Element | ((name: string) => Element))[]; }' is not assignable to type 'Prop'.
7
8
Types of property 'children' are incompatible.
8
9
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
9
10
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
10
11
Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
11
-
tests/cases/conformance/jsx/file.tsx(29,11): error TS2322: Type '{ a: 10; b: "hi"; children: (Element | 1000000)[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
12
+
tests/cases/conformance/jsx/file.tsx(37,11): error TS2322: Type '{ a: 10; b: "hi"; children: (Element | 1000000)[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
12
13
Type '{ a: 10; b: "hi"; children: (Element | 1000000)[]; }' is not assignable to type 'Prop'.
13
14
Types of property 'children' are incompatible.
14
15
Type '(Element | 1000000)[]' is not assignable to type 'string | Element'.
15
16
Type '(Element | 1000000)[]' is not assignable to type 'Element'.
16
17
Property 'type' is missing in type '(Element | 1000000)[]'.
17
-
tests/cases/conformance/jsx/file.tsx(35,11): error TS2322: Type '{ a: 10; b: "hi"; children: (string | Element)[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
18
+
tests/cases/conformance/jsx/file.tsx(43,11): error TS2322: Type '{ a: 10; b: "hi"; children: (string | Element)[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
18
19
Type '{ a: 10; b: "hi"; children: (string | Element)[]; }' is not assignable to type 'Prop'.
19
20
Types of property 'children' are incompatible.
20
21
Type '(string | Element)[]' is not assignable to type 'string | Element'.
21
22
Type '(string | Element)[]' is not assignable to type 'Element'.
22
23
Property 'type' is missing in type '(string | Element)[]'.
23
-
tests/cases/conformance/jsx/file.tsx(41,11): error TS2322: Type '{ a: 10; b: "hi"; children: Element[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
24
+
tests/cases/conformance/jsx/file.tsx(49,11): error TS2322: Type '{ a: 10; b: "hi"; children: Element[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
24
25
Type '{ a: 10; b: "hi"; children: Element[]; }' is not assignable to type 'Prop'.
25
26
Types of property 'children' are incompatible.
26
27
Type 'Element[]' is not assignable to type 'string | Element'.
27
28
Type 'Element[]' is not assignable to type 'Element'.
0 commit comments