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

Viewed 2138

I know that the class API was dropped in Vue 3. It means that there is will not class-based syntax out-of-the-box.

I don't know which kind of magic converts Vue classes written by TypeScript to valid Vue component's objects in vue-class-component, but it leaves the hope that class-based syntax is still could be implemented in other libraries. The problem is just does TypeScript's decorators allow it or no.

1 Answers

Based on this 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

Related