Skip to content
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

A type for a vnode as the first argument of h() is missing #10814

Open
silentmantra opened this issue Apr 26, 2024 · 0 comments
Open

A type for a vnode as the first argument of h() is missing #10814

silentmantra opened this issue Apr 26, 2024 · 0 comments

Comments

@silentmantra
Copy link

Vue version

3.4.25

Link to minimal reproduction

https://play.vuejs.org/#eNqVUstugzAQ/BXLF4KEQEp7SglSHzm0qtqq4dADFwqbhMTYlm1oKsS/1zaBJm2K1Iu1uzNrj3e2wdec+3UFeIZDmYmCKyRBVTxKaFFyJhS6ZSVHK8FK5PiBSQzduTrBpyeEac8Ig+5KfZlOFJScpAp0hlCYaWJkz2kQhYFNR4AwOGrHHlYyY3RVrP2tZFSLb0xvgg27ICCeuSoYlQmeIYsYLCWEfTzYmhIVeH0920C2O1Pfyr2pJfhFgARRQ4IHTKViDaqDF8sn2Ot4AEuWV0SzR8BXkIxURmNHu6lormUf8azaezvigq5judgroLL/lBFqmK3lJ1gP3Ez+r69/y73wL21fQls9xd7OM+4P/jYbD1USloQp2R58PvirLZC6wyBoPpAm7gmkINfgxJ1HlujnsEoroiauX6Z8UlOWA5pHaNOFHmqk+iQwc97TbLcWTA9mJiB3Ws/e4Swfn+N4cYfixVvsuK7drJE1y4vaBjrsxQQdEnTQz8UaFvjXTP7xzOgb7Rc0uSdo

Steps to reproduce

Use h instead of cloneVNode without typescript

What is expected?

Some warning about an invalid argument

What is actually happening?

h works exactly as cloneVNode since it redirects arguments to cloneVNode

System Info

No response

Any additional comments?

Since a vnode is fully supported as the first argument, add a type for it and update the docs (another issue: vuejs/docs#2834)

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

2 participants