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

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>

This is causing the vue-devtools frontend to fail building (commit|yarn.lock)

Can't reproduce that
image

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?

I think we did?
image

Oh ok it was on the readme, I did 't see it. Was browsing the release notes to see when it changed.