{"version":3,"sources":["../../src/util/mixins.ts"],"names":[],"mappings":";;;;;kBAKwB,M;;AAJxB;;;;;;AAIc,SAAU,MAAV,GAA2C;AAAA,sCAAtB,IAAsB;AAAtB,YAAsB;AAAA;;AACvD,WAAO,cAAI,MAAJ,CAAW,EAAE,QAAQ,IAAV,EAAX,CAAP;AACD,C","sourcesContent":["/* eslint-disable max-len, import/export, no-use-before-define */\nimport Vue, { VueConstructor } from 'vue'\n\nexport default function mixins (...args: T): ExtractVue extends infer V ? V extends Vue ? VueConstructor : never : never\nexport default function mixins (...args: VueConstructor[]): VueConstructor\nexport default function mixins (...args: VueConstructor[]): VueConstructor {\n return Vue.extend({ mixins: args })\n}\n\n/**\n * Returns the instance type from a VueConstructor\n * Useful for adding types when using mixins().extend()\n */\nexport type ExtractVue = T extends (infer U)[]\n ? UnionToIntersection<\n U extends VueConstructor ? V : never\n >\n : T extends VueConstructor ? V : never\n\ntype UnionToIntersection =\n (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never\n"],"sourceRoot":""}