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

types: DefineComponent turns any props into unknown #4983

Closed
jods4 opened this issue Nov 22, 2021 · 0 comments · Fixed by #4985
Closed

types: DefineComponent turns any props into unknown #4983

jods4 opened this issue Nov 22, 2021 · 0 comments · Fixed by #4985
Labels
🐞 bug Something isn't working scope: types

Comments

@jods4
Copy link
Contributor

jods4 commented Nov 22, 2021

Version

3.2.22

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Using Typescript, define a props typed as any.
Try to access random members in template.

image

What is expected?

No compilation error

What is actually happening?

Typescript complains, because the props is of type unknown


Downstream issue in Volar: vuejs/language-tools#713
@johnsoncodehk traced the issue to be in defineComponent typings.

@posva posva added 🐞 bug Something isn't working scope: types labels Nov 22, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: types
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants