@scefira/dfw-nodejs
Version:
18 lines • 669 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const DFWInstance_1 = __importDefault(require("./scripts/system/DFWInstance"));
class DFW {
static getIstance(name) {
return this.instances[name ? name : "main"];
}
static createInstance(name, cfg) {
this.instances[name ? name : "main"] = new DFWInstance_1.default(cfg);
return this.instances[name ? name : "main"];
}
}
DFW.instances = {};
exports.default = DFW;
//# sourceMappingURL=index.js.map
;