-
Notifications
You must be signed in to change notification settings - Fork 433
lifecycle types do not work with Mixins #387
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
Comments
Can you provide self-contained reproduction as example GitHub repo? |
Here is a minimal project where I was able to reproduce the issue (commit). Completion in index, which extends Additionally, TypeScript gives me the following error:
Is there anything to add? |
Looks like TypeScript problem. If we have I'll fix |
The latest dev version of TypeScript seems already fixed this problem. |
Following introduction of lifecycle hooks types in #371 and #386, completion works well for classes extending Vue directly but does not work with Mixins:
With the above code example (and a valid Mixin), completion does not work in the class for lifecycle hooks such as mounted. The result is the same when imported by
vue-property-decorator
.Tested using WebStorm 2019.3.2 preview, vue-class-component 7.2.1.
The text was updated successfully, but these errors were encountered: