UNPKG

@kavist/arjuna

Version:

Node.js Boilerplate, revisited

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