You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first section shows that the type of the data property is being inferred correctly. However, in the second section, an error occurs. While I've faced that type error for a while, I was bypassing the check by using $data. However, I just realized that the type inference was working correctly in the other side.
I've found some similar issues about type inference in computed properties, but not the exact same one - so I decided to submit a new one.
The text was updated successfully, but these errors were encountered:
Info
Platform: macOS
Vetur version: v0.28.0
VS Code version: 1.50.1
Nuxt 2.14.6
TypeScript 4.0.3
Problem
The first section shows that the type of the data property is being inferred correctly. However, in the second section, an error occurs. While I've faced that type error for a while, I was bypassing the check by using
$data
. However, I just realized that the type inference was working correctly in the other side.I've found some similar issues about type inference in computed properties, but not the exact same one - so I decided to submit a new one.
The text was updated successfully, but these errors were encountered: