Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

av-ts 0.6 #25

Closed
1 task
HerringtonDarkholme opened this issue Dec 1, 2016 · 1 comment
Closed
1 task

av-ts 0.6 #25

HerringtonDarkholme opened this issue Dec 1, 2016 · 1 comment

Comments

@HerringtonDarkholme
Copy link
Owner

HerringtonDarkholme commented Dec 1, 2016

- [ ] remove the constraint that component must inherit from Vue

  • ship the new @watch decorator: BREAKING CHANGE here

The first point: it is very verbose to extends Vue and import a new Symbol. For small components (which are quite common in component oriented arch) it is just overkill.

I do include this constraint for preventing user from inheriting classes other than component. But this can be warned in documentation. Why would most users be bothered by naughty users?

Impossible to achieve point1 because components option expects hashes of which the values are ComponentOption/FunctionalOption/typeof Vue.

Also, _init is required to be called in base constructor to inject in propData. vuejs/vue-class-component#41

@HerringtonDarkholme
Copy link
Owner Author

https://blogs.msdn.microsoft.com/typescript/2016/12/07/announcing-typescript-2-1/ TS2.1 is released! I will implement 0.6 soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant