Strange error on explicitly set type to variable ref() as Ref
Version
3.0.5
Reproduction link
https://codesandbox.io/s/mutable-forest-ehehf?file=/src/index.ts
Steps to reproduce
- create variable with type Ref
- set value to ref(item)
const data:Ref<Item> = ref(item)
What is expected?
no errors
What is actually happening?
vue try to convert type Item
to ToRef<Item>