Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use vue-class-component and vue-property-decorator as described here:

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.



That 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: