4 ms·
You can use vue-class-component and vue-property-decorator as described here: https://class-component.vuejs.org/ https://class-component.vuejs.org/ You get to
by Udik 6y ago
You can use vue-class-component and vue-property-decorator as described here:
https://class-component.vuejs.org/ https://class-component.vuejs.org/
You get to define your components as classes with their methods and properties, and can declare props and watchers via decorators. Overall a good typescript experience.
- IshKebab 6y agoThat is what I currently do. It's ok within a component, but there's no type checking when another component uses yours and gets the prop types wrong.