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 generic describes the shape of the object you pass to reactive().
Your problem is that the interface doesn't properly describe the object that you pass in: the interface doesn't account for the ref. Ref<number> would be accurate.
Version
3.2.31
Reproduction link
github.com
Steps to reproduce
npm i
App.vue
fileWhat is expected?
No TypeScript error appears while trying to use the reactive variables as values for the reactive objects with generic type
What is actually happening?
The current type description of
reactive
does not cover the case when there is a need to use Ref inside typedreactive
Since any usage of reactive variables is unwrapped inside
reactive
, the current type does not cover the described caseThe text was updated successfully, but these errors were encountered: