import Vue , { ComponentOptions } from 'vue' ; import { BuildOptions } from './utils' ; export param { ComponentOptions < Vue > } options returns { ClassDecorator } export function GlobalMixin ( options ? ) { const factory = function ( Component , options ? ) : void { Vue . mixin ( BuildOptions ( Component , options ) as any ) ; } ; return function ( Component ) { return factory ( Component , options ) ; } ; }