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
The issue is that icons are declared as RenderFunction and the return type of the RenderFunction is VNodeChild and VNodeChildis not a valid JSX element.
// From runtime-core.d.tsexportdeclaretypeRenderFunction=()=>VNodeChild;
I know we have already two pull request (#322 and #549) about this issue, but with tsx files I had the same issue allways !!!
Let's use the generated code from the Beaker Icon to test the types from the two pull requests (#322 and #549)
Let's test RenderFunction type
you can see the type is not compatible.
Let's test DefineComponent type
you can see again the type is not compatible.
Let's test FunctionalComponent type
and you can see the type is compatible and vue-tsc reports no errors.
I'm preparing a pull request to solve this issue.
The text was updated successfully, but these errors were encountered:
If you create a TSX Component and try to use any icon you will receive a nice TypeScript error...
The issue is that icons are declared as
RenderFunction
and the return type of theRenderFunction
isVNodeChild
andVNodeChild
is not a valid JSX element.I know we have already two pull request (#322 and #549) about this issue, but with
tsx
files I had the same issue allways !!!Let's use the generated code from the Beaker Icon to test the types from the two pull requests (#322 and #549)
Let's test
RenderFunction
typeLet's test
DefineComponent
typeLet's test
FunctionalComponent
typeI'm preparing a pull request to solve this issue.
The text was updated successfully, but these errors were encountered: