|
1 | 1 | tests/cases/conformance/jsx/file.tsx(24,28): error TS2551: Property 'NAme' does not exist on type 'IUser'. Did you mean 'Name'?
|
2 |
| -tests/cases/conformance/jsx/file.tsx(36,15): error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | ReactElement<any> | any[]'. |
3 |
| - Type '(user: IUser) => Element' is missing the following properties from type 'any[]': push, pop, concat, join, and 15 more. |
4 |
| -tests/cases/conformance/jsx/file.tsx(39,15): error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | ReactElement<any> | any[]'. |
5 |
| - Type '(user: IUser) => Element' is missing the following properties from type 'any[]': push, pop, concat, join, and 15 more. |
| 2 | +tests/cases/conformance/jsx/file.tsx(36,15): error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | any[] | ReactElement<any>'. |
| 3 | + Type '(user: IUser) => Element' is missing the following properties from type 'ReactElement<any>': type, props |
| 4 | +tests/cases/conformance/jsx/file.tsx(39,15): error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | any[] | ReactElement<any>'. |
| 5 | + Type '(user: IUser) => Element' is missing the following properties from type 'ReactElement<any>': type, props |
6 | 6 |
|
7 | 7 |
|
8 | 8 | ==== tests/cases/conformance/jsx/file.tsx (3 errors) ====
|
@@ -50,17 +50,17 @@ tests/cases/conformance/jsx/file.tsx(39,15): error TS2322: Type '(user: IUser) =
|
50 | 50 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
51 | 51 | ) }
|
52 | 52 | ~~~~~~~~~~~~~
|
53 |
| -!!! error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | ReactElement<any> | any[]'. |
54 |
| -!!! error TS2322: Type '(user: IUser) => Element' is missing the following properties from type 'any[]': push, pop, concat, join, and 15 more. |
| 53 | +!!! error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | any[] | ReactElement<any>'. |
| 54 | +!!! error TS2322: Type '(user: IUser) => Element' is missing the following properties from type 'ReactElement<any>': type, props |
55 | 55 | !!! related TS6212 tests/cases/conformance/jsx/file.tsx:36:15: Did you mean to call this expression?
|
56 | 56 | { user => (
|
57 | 57 | ~~~~~~~~~
|
58 | 58 | <h1>{ user.Name }</h1>
|
59 | 59 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
60 | 60 | ) }
|
61 | 61 | ~~~~~~~~~~~~~
|
62 |
| -!!! error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | ReactElement<any> | any[]'. |
63 |
| -!!! error TS2322: Type '(user: IUser) => Element' is missing the following properties from type 'any[]': push, pop, concat, join, and 15 more. |
| 62 | +!!! error TS2322: Type '(user: IUser) => Element' is not assignable to type 'string | number | boolean | any[] | ReactElement<any>'. |
| 63 | +!!! error TS2322: Type '(user: IUser) => Element' is missing the following properties from type 'ReactElement<any>': type, props |
64 | 64 | !!! related TS6212 tests/cases/conformance/jsx/file.tsx:39:15: Did you mean to call this expression?
|
65 | 65 | </FetchUser>
|
66 | 66 | );
|
|
0 commit comments