vuejs / composition-api

Composition API plugin for Vue 2

Home Page:https://composition-api.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type of unref is incorrect

stellR42 opened this issue · comments

This was fixed in Vue 3, but seems to not have been updated in this package.
The type should be <T>(ref: T | Ref<T>): T but is currently <T>(ref: T): T extends Ref<infer V> ? V : T
See vuejs/core#3954.

In general, how up to date is this package with the Vue 3 repository? If an issue has been fixed there, can I reasonably expect it to have been fixed here as well, or is that not the case?

That issue is created by me, wait a minute and let me fix the type of unref and #866.

Stale issue message