Closed bikeshedder closed 3 years ago
Ah TypeScript.. I was trying to be explicit that it wasn't just any JSX element but one that was a DOM element. Like a div. I didn't check the TS but I was hoping narrowing would work but I guess the problem is TS doesn't realize that <div>
is in fact an Element
.. only that it could be an Element
. I guess I should just change it and accept the Types won't be specific enough here.
Cool. Thanks a lot for the 0.0.6 release! :+1:
Given the following code...
...the TS compiler inside VSCode complains:
Looking at the
Transition.d.ts
I found it accepting anElement
rather thanJSX.Element
. Is this correct? When I change theTransitionProps
as follows the error goes away: