You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edit - I see that as const can be now removed, but shouldn't it still work with as const like it did in previous versions? Also this change was not announced in the release notes or changelog
$ vue-tsc --noEmit && vite build
src/App.vue:6:19 - error TS2339: Property 'length' does not exist on type 'Ref<string>'.
6 console.log(foo.length);
~~~~~~
The text was updated successfully, but these errors were encountered:
jacekkarczmarczyk
changed the title
invalid type inference in watch([ref]) since 1.5
invalid type inference in watch([ref]) since 1.4.10
Apr 25, 2022
jacekkarczmarczyk
changed the title
invalid type inference in watch([ref]) since 1.4.10
invalid type inference in watch([ref] as const) since 1.4.10
Apr 25, 2022
edit - I see that
as const
can be now removed, but shouldn't it still work withas const
like it did in previous versions? Also this change was not announced in the release notes or changelogrepro
https://github.com/jacekkarczmarczyk/composition-api-ts-bug
run
yarn build
code
error
The text was updated successfully, but these errors were encountered: