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
2.0.28
1.92.0-Insider
3.5.0-alpha.5
5.5.4
No response
<script lang="ts" setup> import Child from './component.vue'; const model = '1'; const foo = '1'; const bar = '1'; </script> <template> <Child v-model="model" v-model:foo="foo" v-model:bar="bar" /> </template>
<script lang="ts" setup> const modelAlias = defineModel({ type: Number, required: true }); const fooAlias = defineModel('foo', { type: Number, default: 1 }); const barAlias = defineModel('bar', { default: 1 }); </script>
Correct type inference.
All props got any type.
any
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Vue - Official extension or vue-tsc version
2.0.28
VSCode version
1.92.0-Insider
Vue version
3.5.0-alpha.5
TypeScript version
5.5.4
System Info
No response
Steps to reproduce
What is expected?
Correct type inference.
What is actually happening?
All props got
any
type.Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: