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> |
||
|---|---|---|
| .. | ||
| src | ||
| README.md | ||
| package.json | ||
| tsconfig.json | ||
| tslint.json | ||
README.md
Typescript Example
The types are available since v1.0.0
How To Start
Install and transpile:
npm install
Then, start
npm start