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.4
https://play.vuejs.org/#eNqNUU1v2zAM/SuEL+2AxBqQnYKm6zb0sAH7wDbsJAzQbCZRJ1GCRDsBgvz30XI/vGwt6pP1SD6+93io3sRY9x1Wy+oiN8lGhozcRXCGNitdcdbVpSbrY0gMB9gZbrZwhHUKHs5k8ExTEygz+NCi+2Fch7CCFteW8OMAnR+Gl+kcL2FtXEY4vtCkqTCdP0zNoIfVJRw0AYyMRoj64akUyPfztaZx9EKNUkVYNatGbXNvYn2TA4mTwqFvC2JgObIOmCge3rraMse8VKppScZEhO1TTciKoldX0qZSR2w9ztvgrxb1q/qlam3mKVxj9vNfKewyJiHR1WyyRgnYY5onpBYTpueuPRmbrj4p/bN+2H6UkCQUzpLh2m5OImmCj9Zh+hzZSsZ/RWOcC7sPBeMk97jDmy02v/+D3+T96OlLwqJs4p9N2iCP5etvn3Av//dFuXnnbs/wSPEr5uC6QePY9rajVmRP+ora9+XCljbf8/WekfKdqUFoSaP0l3u8e8L6g9xFvbhP8fgH68wMIQ==
import { watch } from 'vue' const modelValue = defineModel({ default: false }) watch(modelValue, v => { const a = v // ^? const a: (object | WatchSource<unknown>)[] })
When using the result from defineModel on a watch is expected the value from the watch to have the correct type, in this case boolean
defineModel
watch
boolean
Not resolving the type correct
No response
The text was updated successfully, but these errors were encountered:
fix(types): fix defineModel watch type error (#9942)
4af8583
close #9939
Successfully merging a pull request may close this issue.
Vue version
3.4
Link to minimal reproduction
https://play.vuejs.org/#eNqNUU1v2zAM/SuEL+2AxBqQnYKm6zb0sAH7wDbsJAzQbCZRJ1GCRDsBgvz30XI/vGwt6pP1SD6+93io3sRY9x1Wy+oiN8lGhozcRXCGNitdcdbVpSbrY0gMB9gZbrZwhHUKHs5k8ExTEygz+NCi+2Fch7CCFteW8OMAnR+Gl+kcL2FtXEY4vtCkqTCdP0zNoIfVJRw0AYyMRoj64akUyPfztaZx9EKNUkVYNatGbXNvYn2TA4mTwqFvC2JgObIOmCge3rraMse8VKppScZEhO1TTciKoldX0qZSR2w9ztvgrxb1q/qlam3mKVxj9vNfKewyJiHR1WyyRgnYY5onpBYTpueuPRmbrj4p/bN+2H6UkCQUzpLh2m5OImmCj9Zh+hzZSsZ/RWOcC7sPBeMk97jDmy02v/+D3+T96OlLwqJs4p9N2iCP5etvn3Av//dFuXnnbs/wSPEr5uC6QePY9rajVmRP+ora9+XCljbf8/WekfKdqUFoSaP0l3u8e8L6g9xFvbhP8fgH68wMIQ==
Steps to reproduce
What is expected?
When using the result from
defineModel
on awatch
is expected the value from the watch to have the correct type, in this caseboolean
What is actually happening?
Not resolving the type correct
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: