UNPKG

@macrof/shared

Version:

React MicroFrontend Shared, Typescript, Webpack 5, ModuleFederation

25 lines (24 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RootStore = void 0; const __1 = require("../.."); const AFactoryStore_1 = require("./factory/AFactoryStore"); class RootStore extends AFactoryStore_1.AFactoryStore { constructor(rootContainer) { super(); this.rootContainer = rootContainer; this.logger = this.rootContainer.get(__1.MF_TYPES.ILogger); this.http = this.rootContainer.get(__1.MF_TYPES.IHttpService); this.process = this.rootContainer.get(__1.MF_TYPES.IResponseService); this.loader = this.rootContainer.get(__1.MF_TYPES.ILoader); } init() { return { logger: this.logger, http: this.http, process: this.process, loader: this.loader, }; } } exports.RootStore = RootStore;