A most simple example display of a typing issue with Vue3 using the inject/provide composition API.
As you'll find annotated in the files in [/src/componetns/] this project serves to example to a problem of wrapping and unwrapping types
using inject/provide in the new Vue3 composition API. When providing a computed property with provide
the inferred type is ComputedRef.
That type will also be inferred to the injected property returned by inject
, although the value is automatically unwrapped at this point.
Now I am searching for answers how to fix this typing issue, potentially submitting a PR to the vue docs if there is a solution.
npm install
npm run serve
npm run build
npm run lint