This change modifies Emitter so that it does not directly extend the Node.js EventEmitter class. Instead, it holds a singleton instance of an EventEmitter but is not an instance of EventEmitter itself. This commit also updates the typescript example to use a modern version of @types/node and typescript. Finally there are a few minor formatting changes picked up by eslint. Fixes: https://github.com/cloudevents/sdk-javascript/issues/385 Signed-off-by: Lance Ball <lball@redhat.com> |
||
---|---|---|
.. | ||
index.ts |