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
3.2.2
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuXHQ8ZGl2IDpjbGFzcz1cImBkZXB0aC0ke2RlcHRofWBcIj5cbiAgICA8c2xvdCAvPlxuICA8L2Rpdj5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQgc2V0dXAgbGFuZz1cInRzXCI+XG5kZWZpbmVQcm9wczx7XG5cdGRlcHRoPzogMSB8IDIgfCAzIHwgNCB8IDUsXG59PigpO1xuPC9zY3JpcHQ+XG4ifQ==
Use any prop with multiple values of same type. eg.
defineProps<{ depth?: 1 | 2 | 3 | 4 | 5, }>();
depth should have type Number
depth
Number
depth has type [Number, Number, Number, Number, Number]
[Number, Number, Number, Number, Number]
The text was updated successfully, but these errors were encountered:
fix(defineProps): defineProps generates unnecessary array of same typ…
ad66295
…es (#4353) fix #4352
Successfully merging a pull request may close this issue.
Version
3.2.2
Reproduction link
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuXHQ8ZGl2IDpjbGFzcz1cImBkZXB0aC0ke2RlcHRofWBcIj5cbiAgICA8c2xvdCAvPlxuICA8L2Rpdj5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQgc2V0dXAgbGFuZz1cInRzXCI+XG5kZWZpbmVQcm9wczx7XG5cdGRlcHRoPzogMSB8IDIgfCAzIHwgNCB8IDUsXG59PigpO1xuPC9zY3JpcHQ+XG4ifQ==
Steps to reproduce
Use any prop with multiple values of same type. eg.
What is expected?
depth
should have typeNumber
What is actually happening?
depth
has type[Number, Number, Number, Number, Number]
The text was updated successfully, but these errors were encountered: