sdk-javascript/test
Lance Ball a5befbe0cf
fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194)
This extracts all of the attributes from a `CloudEventVX` that
are not generated by the constructor (id and specversion) into their
own `CloudEventVXAttributes` interface which the `CloudEventVX`
interface extends. This allows TS devs to optionally provide `id`
and `specversion` with proper autocompletion.

Additionally, I have added a union type, `CE` in `cloudevent.ts` which
represents any of `CloudEventV1`, `CloudEventv03`, `CloudEventV1Attributes`
and `CloudEventV03Attributes` interfaces.

Finally, this commit changes all of the user facing API to be `.ts` instead
of `.js` files.

The existing documentation in `./docs` was removed. It should be replaced with generated
HTML from tsdocs, pending some other method of publishing API documentation. That will
come as a separate, docs-only PR.

Fixes: https://github.com/cloudevents/skd-javascript/issues/188

Signed-off-by: Lance Ball <lball@redhat.com>
2020-05-29 17:49:02 -04:00
..
bindings/http fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194) 2020-05-29 17:49:02 -04:00
formats/json lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
cloud_event_test.js fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194) 2020-05-29 17:49:02 -04:00
constants_test.js lib: correct name of CONTENT_ENCODING constant (#168) 2020-05-18 09:44:58 -04:00
fun_tests.js lib!: refactor HTTP bindings and specifications (#165) 2020-05-18 11:34:22 -04:00
http_binding_0_3.js fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194) 2020-05-29 17:49:02 -04:00
http_binding_1.js fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194) 2020-05-29 17:49:02 -04:00
sdk_test.js fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194) 2020-05-29 17:49:02 -04:00
spec_0_3_tests.js fix: introduce CloudEventV1 and CloudEventV03 interfaces (#194) 2020-05-29 17:49:02 -04:00
spec_1_tests.js lib!: change CloudEvent to use direct object notation and get/set properties (#172) 2020-05-22 13:03:36 -04:00