UNPKG

nucleus-ui-builder

Version:
28 lines (27 loc) 650 B
function _define_property(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } class FileWriter { addCommand(command) { this.commands.push(command); } executeAll() { this.commands.forEach((command)=>command.execute()); this.commands = []; } constructor(){ _define_property(this, "commands", []); } } export { FileWriter as default }; //# sourceMappingURL=file.writer.js.map