UNPKG

zeebe-node

Version:

The Node.js client library for the Zeebe Workflow Automation Engine.

24 lines 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypedEmitter = void 0; const events_1 = require("events"); class TypedEmitter { constructor() { this.emitter = new events_1.EventEmitter(); } on(eventName, fn) { this.emitter.on(eventName, fn); return this; } off(eventName, fn) { this.emitter.off(eventName, fn); } emit(eventName, params) { this.emitter.emit(eventName, params); } removeAllListeners() { this.emitter.removeAllListeners(); } } exports.TypedEmitter = TypedEmitter; //# sourceMappingURL=TypedEmitter.js.map