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

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

Closed
danielroe opened this issue Feb 8, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@danielroe
Copy link
Member

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

@danielroe danielroe added the bug Something isn't working label Feb 8, 2024
@cexbrayat
Copy link
Member

Hi @danielroe

I don't think we can do much about this, the type inference is already quite complex as it is, so I would recommend using defineComponent. I see the downstream issue has been fixed, so I'll close this one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants