* Create a new NodeHelper subclass with the given module definition. * @param {object} moduleDefinition Methods and properties for the helper. * @returns {typeof NodeHelper} A new subclass of NodeHelper.
(moduleDefinition)
| 165 | * @returns {typeof NodeHelper} A new subclass of NodeHelper. |
| 166 | */ |
| 167 | static create (moduleDefinition) { |
| 168 | return class extends NodeHelper { |
| 169 | constructor () { |
| 170 | super(); |
| 171 | Object.assign(this, moduleDefinition); |
| 172 | this.init(); |
| 173 | } |
| 174 | }; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | module.exports = NodeHelper; |
no outgoing calls
no test coverage detected