Skip to content

Instantly share code, notes, and snippets.

@amitozdeol
Last active May 27, 2020 14:00
Show Gist options
  • Save amitozdeol/9e90fd37a6ecd97ba74b43203db9056c to your computer and use it in GitHub Desktop.
Save amitozdeol/9e90fd37a6ecd97ba74b43203db9056c to your computer and use it in GitHub Desktop.
Use multiple mixins in Vue typescript component
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