You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{defineComponent}from"vue";defineComponent({mixins: [defineComponent({methods: {foo(){}}}),defineComponent({methods: {bar(){}}})],mounted(){console.log(this.foo,this.bar)}})defineComponent({mixins: [defineComponent({methods: {foo(){}}}),defineComponent({})],mounted(){console.log(this.foo)// Property 'foo' does not exist on type ...}})
If two mixins both have defined some method, the result type is correctly merged. Otherwise all method types will be unavailable.
What is expected?
Method types are correctly merged.
What is actually happening?
If two mixins both have defined some method, the result type is correctly merged. Otherwise all method types will be unavailable.
The text was updated successfully, but these errors were encountered:
Version
3.0.7
Reproduction link
https://codesandbox.io/s/youthful-keldysh-r3e0h?file=/src/index.ts
Steps to reproduce
See the following code:
If two mixins both have defined some method, the result type is correctly merged. Otherwise all method types will be unavailable.
What is expected?
Method types are correctly merged.
What is actually happening?
If two mixins both have defined some method, the result type is correctly merged. Otherwise all method types will be unavailable.
The text was updated successfully, but these errors were encountered: