sdk-javascript/examples/typescript-ex
Lance Ball 1af3d43341 fix: Emitter should not extend EventEmitter
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>
2021-02-27 19:27:20 -05:00
..
src fix: Emitter should not extend EventEmitter 2021-02-27 19:27:20 -05:00
README.md chore: Update examples to use the latest sdk version(2.0.2) (#206) 2020-06-09 18:08:15 -04:00
package.json fix: Emitter should not extend EventEmitter 2021-02-27 19:27:20 -05:00
tsconfig.json chore: Update examples to use the latest sdk version(2.0.2) (#206) 2020-06-09 18:08:15 -04:00
tslint.json Typescript examples 2019-10-29 20:49:54 -03:00

README.md

Typescript Example

The types are available since v1.0.0

How To Start

Install and transpile:

npm install

Then, start

npm start