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

Spreading data functional components TSX type error #12778

Closed
blake-newman opened this issue Sep 12, 2022 · 1 comment
Closed

Spreading data functional components TSX type error #12778

blake-newman opened this issue Sep 12, 2022 · 1 comment
Labels

Comments

@blake-newman
Copy link
Member

Version

2.7.10

Reproduction link

codesandbox.io

Steps to reproduce

Spread data onto TSX component / intrinsic element causes type errors due to miss matching style definition of VNodeData property.

https://github.com/vuejs/jsx-vue2#attributesprops

What is expected?

Expect the spreading of data to not throw type error.

What is actually happening?

The style attribute expects the shape of string | CSSProperties however the VNodeData definition is string | object[] | object

@k-furusho
Copy link
Contributor

I'm trying to solve this PR #12789

yyx990803 added a commit that referenced this issue Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants