import Vue from 'vue' ; import { makeStorage , IStore } from '@/store' ; export const prepareStorage = ( store ) : void => { store . $storage = makeStorage ( store ) ; Vue . mixin ( { beforeCreate ( ) { this . $storage = store . $storage ; } } ) ; } ;