从 TypeScript 功能的角度来看,基于 class 的语法是否可以为 Vue.js 3 实现?

Is class-based syntax implementable for Vue.js 3 from the view point of TypeScript functionality?

我知道 class API 在 Vue 3 中被删除了。这意味着不会有现成的基于 class 的语法。

我不知道是什么魔法把TypeScript写的Vueclasses转换成vue-class-component中有效的Vue组件的对象,但它留下了希望class-based语法仍然可以在其他库中实现。问题只是 TypeScript 的装饰器是否允许它。

基于此issue the class component is compatible with Vue 3 and it exposes also an API to work with new composition api using new decorators, dropping out some ones like @component and adding new ones such as @Options, for more details check also this issue