-
Notifications
You must be signed in to change notification settings - Fork 84
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
Optional component props in the Options Api are described in .d.ts not correct #211
Comments
Vue props default optional if without |
@qmhc even if you specify |
@qmhc webstorm Volar appeared only in beta version. |
Currently plugin using Volar as drive (in v3), I think we should wait Volar update. Because Volar finally will slove this solution and we shouldn't work repeatedly. |
If it helps, I see the same issue with optional React prop types My .jsx file has the following defined:
The generated definition file is this (optional props are not listed as optional):
|
Describe the bug
The plugin does not take into account that "error" is an optional parameter.
Component.vue:
Like now:
Component.vue.d.ts:
It should be:
Component.vue.d.ts:
Reproduction
I'll create it later if anyone needs it.
Steps to reproduce
No response
System Info
Validations
The text was updated successfully, but these errors were encountered: