Last active
May 27, 2020 14:00
-
-
Save amitozdeol/9e90fd37a6ecd97ba74b43203db9056c to your computer and use it in GitHub Desktop.
Use multiple mixins in Vue typescript component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { VueConstructor } from 'vue/types/umd'; | |
//To use just extend with mixin variable | |
export default (Vue as VueConstructor< | |
Vue & | |
InstanceType<typeof mixin1> & | |
InstanceType<typeof mixin2> | |
>).extend({ | |
mixins: [mixin1, mixin2] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment