-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Open
Labels
Description
Vue version
3.2.0
Link to minimal reproduction
Steps to reproduce
- Download the code from the reproduction playground
- Install Volar in the editor
- Hover over the items in the template
What is expected?
The type of items
should be number[]
What is actually happening?
The type of items
is any
.
System Info
No response
Any additional comments?
I've also created example projects using both Vue 3 and Vue 2.7 at:
- Vue 2.7: https://github.com/rchl/volar-vue2-test/tree/vue27
- Vue 3: https://github.com/rchl/volar-vue2-test/tree/vue3
(note that those repros are on their own branches)
This is to show that this works in Vue 2.7 when annotating using the PropOptions
type (Vue 2 variant of Vue 3's Prop
type).
Also see corresponding Volar issue: vuejs/language-tools#1984 (comment)
johnsoncodehk, sxzz, Simon-He95, tuchg, sadeghbarati and 1 more