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
undefined
3.5.10
https://play.vuejs.org/#eNp9UsFOAjEQ/ZVJL2pC4CAnsmDUcMADEvXYA8vuAMVup9nO4hrcf3e6K4iJ4daZ9/rem2kP6t77/r5CNVJJyErjGQJy5cGmbjPWioNWE+0ycoHhACsii6lblOShgTHkuDYOYxmSP+jd6FjBF1Su4+XQTK5vtEsGnZUIS8FYeJsySgWQbIeTObHJEHiLsDyTXIKPtiYAf3rRSgOIOtbemszwibrsw4whJwzuimGb7kWJYIWRTJ4NudS2Sj3YVTJUoOgLrV1GOUaDjApvLObJQOLEvGcZVU+WIvtYm01/F8jJ5g5RQaufW+Vz6yKLG0GLRCy1lj6e2h6XFfaO/WyL2fs//V2oY0+rRYkByz1qdcI4LTfIHTx9nWMt5xNYUF5ZYV8AXzCQrWLGjvYg7yOxz3ht2lnhqWTjNm9hWjO6cBwqBo3MpuVrJd/n8cLov3Fv+8P2nnaNar4BQJzWTg==
Create a boolean or undefined prop using the defineProps macro.
For the inferred prop type to have undefined as a possible type
It strips out the undefined type, leaving only boolean.
boolean
No response
I believe it's in
core/packages/runtime-core/src/apiSetupHelpers.ts
Lines 96 to 98 in 29de6f8
Should be fixed by using the original type
export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: T[K] }
The text was updated successfully, but these errors were encountered:
fixes vuejs#12098
096b018
Successfully merging a pull request may close this issue.
Vue version
3.5.10
Link to minimal reproduction
https://play.vuejs.org/#eNp9UsFOAjEQ/ZVJL2pC4CAnsmDUcMADEvXYA8vuAMVup9nO4hrcf3e6K4iJ4daZ9/rem2kP6t77/r5CNVJJyErjGQJy5cGmbjPWioNWE+0ycoHhACsii6lblOShgTHkuDYOYxmSP+jd6FjBF1Su4+XQTK5vtEsGnZUIS8FYeJsySgWQbIeTObHJEHiLsDyTXIKPtiYAf3rRSgOIOtbemszwibrsw4whJwzuimGb7kWJYIWRTJ4NudS2Sj3YVTJUoOgLrV1GOUaDjApvLObJQOLEvGcZVU+WIvtYm01/F8jJ5g5RQaufW+Vz6yKLG0GLRCy1lj6e2h6XFfaO/WyL2fs//V2oY0+rRYkByz1qdcI4LTfIHTx9nWMt5xNYUF5ZYV8AXzCQrWLGjvYg7yOxz3ht2lnhqWTjNm9hWjO6cBwqBo3MpuVrJd/n8cLov3Fv+8P2nnaNar4BQJzWTg==
Steps to reproduce
Create a boolean or undefined prop using the defineProps macro.
What is expected?
For the inferred prop type to have undefined as a possible type
What is actually happening?
It strips out the
undefined
type, leaving onlyboolean
.System Info
No response
Any additional comments?
I believe it's in
core/packages/runtime-core/src/apiSetupHelpers.ts
Lines 96 to 98 in 29de6f8
Should be fixed by using the original type
The text was updated successfully, but these errors were encountered: