ref<T>() returns T instead of Ref<T>
Akryum opened this issue · comments
Since version 1.4.0
const foo = ref<MyObj>({ ... })
1.4.0 result:
MyObj
1.3.3 result:
Ref<MyObj>
Here is a branch where there is the issue (diff with main
is upgrading to 1.4.0): https://github.com/vuejs/devtools/tree/issue-composition-api-types
Here is a branch where there is the issue (diff with
main
is upgrading to 1.4.0): https://github.com/vuejs/devtools/tree/issue-composition-api-types
yarn.lock
typescript@^3.8.3:
version "3.9.10"
Did the requirement on typescript change?
@Akryum Yes.
TypeScript version >4.2 is required. You can use ts 4.5.2 now.
It works now. Maybe typescript should be added as an optionalDependency with the version it expects?
Or maybe mention it in the release notes?
Oh ok it was on the readme, I did 't see it. Was browsing the release notes to see when it changed.