for-ease
Version:
a simple library for itrating over anything
27 lines (26 loc) • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tillValueClass_1 = require("./tillValueClass");
const tillKeyClass_1 = require("./tillKeyClass");
class TillFactory {
constructor(mixed) {
this.mixed = mixed;
mixed ? this.createTills() : '';
}
;
getTills() {
return this.tills;
}
setMixedObj(mixed) {
this.mixed = mixed;
this.createTills();
return this;
}
createTills() {
let tillKey = (new tillKeyClass_1.TillKeyClass(this.mixed)).getTills();
let tillValue = (new tillValueClass_1.TillValueClass(this.mixed)).getTills();
let tills = Object.assign({}, tillKey, tillValue);
this.tills = tills;
}
}
exports.TillFactory = TillFactory;