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.5.11
https://play.vuejs.org/#eNqFU1Fv0zAQ/itXv6SVSqJp8FKaAoNJgBBMMIkXS6hNLq03x7Zspysq/e+c7Tatpm57ac/3fff5u/Nlyz4Yk687ZBM2dZUVxoND35kZV6I12nrYgsUGdtBY3UJG1IwrriqtnIfWLaEM+DD7jFJq+K2trAfZiKtpkeRIiA4eWyPnHukEMP2oWzObFvEvME9QNmbekXgjlvmd04p8bUMNZxWxhUT7w3hBl3M2gYgEbE53P3yNOW87HB/y1Qqr+zP5O7cJOc5uLDq0a+Ssx/zcLtEn+PrXd9xQ3IOtrjtJ7GfAn+i07ILHRLvqVE22T3jR7Zc4XaGWt+5641G5Q1PBaGDuIp8zmngY1FOtH+1e5q9jHVc7mmKoOfewIOdqWVIdycS36Z950QlZ31htXP/a70mgOAz+VaUtZm+58n8NQiKWcNV5r1U6/YNvQt3HOChH3ileJtshP4FsERHaJqCrQ3hL+XcEuG7RCp+R3JFDXe0F+yseyUnKR7EV7eMEnLc03H1h2lazr3oQfvUJm3knvRvW2AiFUXAaf2fD0fi8zx2ttWhgGHXyaKYsy54wSlVFEQsBrdV2MAipVHBsMro6pxR7eEkn9BcVnvvEarGOAYVOag9FShcp//iT+7NGGxaQluUyf5NfXLDdf344ZHc=
Please Check Comp.vue.
We will be able to use Discriminated Union with default value.
If you specify default value of props.type, all type information except props.type will be lost.
props.type
No response
This is similar to #9335
The text was updated successfully, but these errors were encountered:
fix(types): retain union type narrowing with defaults applied (#12108)
05685a9
close #12106
Successfully merging a pull request may close this issue.
Vue version
3.5.11
Link to minimal reproduction
https://play.vuejs.org/#eNqFU1Fv0zAQ/itXv6SVSqJp8FKaAoNJgBBMMIkXS6hNLq03x7Zspysq/e+c7Tatpm57ac/3fff5u/Nlyz4Yk687ZBM2dZUVxoND35kZV6I12nrYgsUGdtBY3UJG1IwrriqtnIfWLaEM+DD7jFJq+K2trAfZiKtpkeRIiA4eWyPnHukEMP2oWzObFvEvME9QNmbekXgjlvmd04p8bUMNZxWxhUT7w3hBl3M2gYgEbE53P3yNOW87HB/y1Qqr+zP5O7cJOc5uLDq0a+Ssx/zcLtEn+PrXd9xQ3IOtrjtJ7GfAn+i07ILHRLvqVE22T3jR7Zc4XaGWt+5641G5Q1PBaGDuIp8zmngY1FOtH+1e5q9jHVc7mmKoOfewIOdqWVIdycS36Z950QlZ31htXP/a70mgOAz+VaUtZm+58n8NQiKWcNV5r1U6/YNvQt3HOChH3ileJtshP4FsERHaJqCrQ3hL+XcEuG7RCp+R3JFDXe0F+yseyUnKR7EV7eMEnLc03H1h2lazr3oQfvUJm3knvRvW2AiFUXAaf2fD0fi8zx2ttWhgGHXyaKYsy54wSlVFEQsBrdV2MAipVHBsMro6pxR7eEkn9BcVnvvEarGOAYVOag9FShcp//iT+7NGGxaQluUyf5NfXLDdf344ZHc=
Steps to reproduce
Please Check Comp.vue.
What is expected?
We will be able to use Discriminated Union with default value.
What is actually happening?
If you specify default value of
props.type
, all type information exceptprops.type
will be lost.System Info
No response
Any additional comments?
This is similar to #9335
The text was updated successfully, but these errors were encountered: