Writing here because maybe it's VS Code, maybe TS or maybe Vue types. Sorry if it's just me :)
VS Code Version 1.18.0 (tsdk as delivered)
Vue 2.5.3, no extra types installed
Observation is that this is downgraded to any if the computed property misses.
Now have a look at the version that contains the computed property. As you can see the whole Component property types are properly inferred.
Writing here because maybe it's VS Code, maybe TS or maybe Vue types. Sorry if it's just me :) VS Code Version 1.18.0 (tsdk as delivered) Vue 2.5.3, no extra types installed
Observation is that
this
is downgraded toany
if the computed property misses.Now have a look at the version that contains the
computed
property. As you can see the whole Component property types are properly inferred.