UNPKG

@kavist/arjuna

Version:

Node.js Boilerplate, revisited

17 lines (13 loc) 299 B
class Operation { constructor() { if (this.constructor === Operation) { throw new Error("Cannot construct abstract instances directly"); } if (this.run === Operation.prototype.run) { throw new Error("Must override run method"); } } } module.exports = Operation;