import { Imoka } from '@imoka/imoka-react'; import { MobwebReactorBundle } from '@imoka/imoka-mobweb-reactor'; class Store { imoka: Imoka constructor() { this.imoka = new Imoka({ bundle: this._createMobwebBundle(), }); } private _createMobwebBundle() { const mobwebBundle = new MobwebReactorBundle(); return mobwebBundle; } } export interface IStore { imoka: Imoka } export default () => { return new Store() }