Skip to content

typescript types don't allow multi-root functional components #8191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zevdg opened this issue May 15, 2018 · 0 comments
Closed

typescript types don't allow multi-root functional components #8191

zevdg opened this issue May 15, 2018 · 0 comments

Comments

@zevdg
Copy link
Contributor

zevdg commented May 15, 2018

Version

2.5.16

Reproduction link

https://github.com/zevdg/vue-typescript-multi-root-component

Steps to reproduce

npm run serve

What is expected?

there shouldn't be errors

What is actually happening?

The page runs and works as expected, but the build shows type errors because the type definitions specify that a single VNode is always returned from functional componnts' render functions.


The fix for this is trivial. I've already fixed it locally, and I'll make a pull request.

@zevdg zevdg changed the title javascript types don't allow multi-root functional components typescript types don't allow multi-root functional components May 15, 2018
zevdg added a commit to zevdg/vue that referenced this issue May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants