Subscribe on changes!

unref returns wrong type

avatar
Jul 27th 2023

Vue version

3

Link to minimal reproduction

https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgVwHZQKYDMA0cYQBqAhgDbIZwC+cWUEIcARAG4VMBQoks+AnmEpIAwgzDIYGACYAlbHjlZqteo1bsA3B20YAHj3gwBlRQHkoo8BOkAeACoA+OAF44i+04A+cS+MmzsDy09A35BOABZYj4AIwwzCzFrKQ8XODs4bwTfZI9tI3CAMQgINKjY+OxzHP8bJGApAC44VGQQOKhqB20AYwhUAGd4LFQ0gAowYihiEGbiiABKFycEDjh1uD7B+GmAdwAFKZm0tEwsCaOQBe0NuGAlMb3D6ZAAOgal1dvbgHofuDWGyoHGBvX6Q1oqAATONJi85iUls4VoD1lsIU9LmkCCRyBgLi9rqi7g9MS93lJPsTfv9icCqEA

Steps to reproduce

See tsplayground

What is expected?

I expect to get unrefed type

What is actually happening?

returned type of unref is still includes ComputedRef. Same for toValue

System Info

No response

Any additional comments?

No response

avatar
Jul 28th 2023

Idem when using toValue

avatar
Aug 7th 2023

same question

avatar
Aug 7th 2023

I believe, it will be fixed with https://github.com/vuejs/core/pull/8748