0

I use mixins retuned from a function,

mixin: [getMixin({})]


function getMixin(config) {
      return defineComponent({
         mixin: [myMixin, myOtherMixin]
      })
}

but WEBSTORM fails to recognise that the methods are from the mixin for some reason. At the same time when I use the mixin directly in my vue component the methods are accurately recognised by the IDE. mixin: [myMixin]

I tried type script remedies too, like defining the return type of the function as same as the mixin tried to wrap the return with definComponent function

1
  • Also I'm using options API Commented Apr 18 at 14:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.