Skip to content

Bug: type inference for components is not on par with defineComponent #2332

@danielroe

Description

@danielroe

Describe the bug

This is likely a duplicate of #972 but I'm not 100% sure so thought I would raise separately. Please feel free to close if it doesn't add anything separately.

To Reproduce

https://stackblitz.com/edit/stackblitz-starters-qp1pxh

Expected behavior

I expect the $data type to be inferred based on the provided object. If wrapped in defineComponent this issue is worked around.

related downstream issue: formkit/formkit#1194

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions