UNPKG

@kavist/arjuna

Version:

Node.js Boilerplate, revisited

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