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