import Vue from 'vue' ; import { provider } from '@/services' ; import { IStore } from '@/store' ; export const prepareServices = ( store ) : void => { store . $services = provider ( ) ; Vue . mixin ( { beforeCreate ( ) { this . $services = store . $services ; } } ) ; } ;