We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
props
3.3.4
https://play.vuejs.org/#eNp9UU1PAjEQ/SuTxgRMcDlwQzBRgwkelKg362FdZnFxd6ZpZ/nIZv+7bQlgCOHQpn3vzeubaaPujUlWNaqhGglWpkwF70b9w1H1lLiMKS8WydIxeV2jCUCrjCtTlGhfjRRMTqshRCZwaVny+jliYmvs7fHsB7PfM/jSbQKm1cyiQ7tCrQ6cpHaBsqMn7y+48ecDWfG8Lr36AvmGjss6ZNzJHmqa+9j/dDHttDJspaDFh5tsBMntmwpBg7KNeq38sB4vtH6MO0gGsU5T66eYJuL88Ir4DDQwx7yg6MSEJNBCbrna+Wt1q62msPzoncATM4xPS7pNFImxbJxP0Pag34fRDfi/ky1EGPh7iZkEYXt9YjoN2xgI18G/e6RlaxBmsXwM4cJ5FH92rqJp50u1fw6OvtI=
Open the production link, goto a.ts, and hover on Props. You'll see it's type is weird.
a.ts
Props
It should be an empty object
It includes many array methods.
Irrelevant - we can reproduce it easily in vue playground and it's a type issue
vuejs/language-tools#3430
The text was updated successfully, but these errors were encountered:
On first glance, it looks like the array types may be coming from the string[] part of this union
string[]
core/packages/runtime-core/src/componentProps.ts
Lines 44 to 46 in 3be4e3c
Sorry, something went wrong.
Looks like this is fixed by #10801
test(types): component type check when props is an empty object (#7419)
d6ccce9
ref #4051 ref #8825
Successfully merging a pull request may close this issue.
Vue version
3.3.4
Link to minimal reproduction
https://play.vuejs.org/#eNp9UU1PAjEQ/SuTxgRMcDlwQzBRgwkelKg362FdZnFxd6ZpZ/nIZv+7bQlgCOHQpn3vzeubaaPujUlWNaqhGglWpkwF70b9w1H1lLiMKS8WydIxeV2jCUCrjCtTlGhfjRRMTqshRCZwaVny+jliYmvs7fHsB7PfM/jSbQKm1cyiQ7tCrQ6cpHaBsqMn7y+48ecDWfG8Lr36AvmGjss6ZNzJHmqa+9j/dDHttDJspaDFh5tsBMntmwpBg7KNeq38sB4vtH6MO0gGsU5T66eYJuL88Ir4DDQwx7yg6MSEJNBCbrna+Wt1q62msPzoncATM4xPS7pNFImxbJxP0Pag34fRDfi/ky1EGPh7iZkEYXt9YjoN2xgI18G/e6RlaxBmsXwM4cJ5FH92rqJp50u1fw6OvtI=
Steps to reproduce
Open the production link, goto
a.ts
, and hover onProps
. You'll see it's type is weird.What is expected?
It should be an empty object
What is actually happening?
It includes many array methods.
System Info
Any additional comments?
vuejs/language-tools#3430
The text was updated successfully, but these errors were encountered: