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
$ tsc --version
message TS6029: Version 1.7.5
$ tsc src/HOC.tsx typings/react/react.d.ts --jsx preserve --module commonjs
src/HOC.tsx(19,22): error TS2600: JSX element attributes type 'T' must be an object type.
src/HOC.tsx(46,18): error TS2600: JSX element attributes type 'MyInputProps & HighlightedProps' must be an object type.
src/HOC.tsx(47,18): error TS2600: JSX element attributes type 'MyLinkProps & HighlightedProps' must be an object type.
I am having an issue trying to get the right typings flowing through when creating higher order components in React. Consider the following:
But this errors with
JSX elements attributes type 'T' must be an object type
. Is this an issue or am I doing something wrong here?This may also be related to #4362, but I am unsure if it is exactly the same issue or not.
Any help would be much appreciated, thanks.
The text was updated successfully, but these errors were encountered: