Skip to content

lifecycle types do not work with Mixins #387

Closed
@GauthierPLM

Description

@GauthierPLM

Following introduction of lifecycle hooks types in #371 and #386, completion works well for classes extending Vue directly but does not work with Mixins:

import Component, { mixins } from "vue-class-component";
import MyMixin from "@/mixins/myMixin";

@Component()
export default class Index extends mixins(MyMixin) {}

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions