Join GitHub today
GitHub is where the world builds software
Further improve Vue type declarations for canonical usage #6391
This pull request supersedes #5887 .
This section provides more background for other reviewers/readers.
Vue + TS users currently need helper library like vue-component-class to provide alternative API for TypeScript. Alternative API uses code pattern that TypeScript recognizes, but it splits Vue community.
Thankfully, TypeScript introduces ThisType which can greatly improve Vue's canonical API. This PR introduces ThisType to Vue's official typing.
… as members from 'data' and the Vue instance.
…Vue instance members.
…s, got rid of AnyVue.
Conflicts: types/options.d.ts types/test/options-test.ts types/test/vue-test.ts types/vue.d.ts