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
v-for
Hi – your plugin is amazing, thanks so much for creating it!
This issue is probably similar to #104 but maybe this can be improved.
For a component
<template> <div> <div v-for="(value, key) in obj"> <span>{{key}}</span>: {{ value.toFixed() }} </div> </div> </template> <script lang="ts"> import { defineComponent } from 'vue' export default defineComponent({ setup() { const obj: Record<'key1' | 'key2', number> = { key1: 1, key2: 2, } return { obj } } }) </script>
I get these on hover
obj
value
any
number
key
string
'key1' | 'key2'
This is a reproduction repo.
The text was updated successfully, but these errors were encountered:
fix: fix v-for types infer for Record<'key1' | 'key2', number>
Record<'key1' | 'key2', number>
7dc9957
#117
Fixed in 0.22.24, thanks for the report!
Sorry, something went wrong.
Amazing – thank you very much – it now works very well with a lot more complex object! 🎉
No branches or pull requests
Hi – your plugin is amazing, thanks so much for creating it!
This issue is probably similar to #104 but maybe this can be improved.
For a component
I get these on hover
obj
is correctly typedvalue
isany
while it should benumber
key
isstring
while it should be'key1' | 'key2'
This is a reproduction repo.
The text was updated successfully, but these errors were encountered: