Subscribe on changes!

vue-tsc error on nested ref parameters when a nested function is added in a reactive object

avatar
Apr 11th 2023

Vue version

2.7.14

Link to minimal reproduction

https://codesandbox.io/s/autumn-bird-4dsir9?file=/src/index.ts

Steps to reproduce

No step needed, just hover red underlined isAdult and first to see the ts(2322) error.

What is expected?

no error

What is actually happening?

Unwraping is not working as expected

System Info

No response

Any additional comments?

What is stranger is that I found that it's not related to sayHi() but I get the errors when I add any function at any level of the object me. Knowing that when I serve/build my app everything works fine and no erros whatsoever in the browser's console.