Skip to content

Spreading data functional components TSX type error #12778

Closed
@blake-newman

Description

@blake-newman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions