We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99bb88b commit fc407cbCopy full SHA for fc407cb
src/lib/cloudevent.ts
@@ -298,7 +298,7 @@ export class CloudEvent {
298
* @param {*} value the value of the extension attribute
299
* @returns {void}
300
*/
301
- addExtension(key: string, value: any) {
+ addExtension(key: string, value: any): void {
302
this.spec.addExtension(key, value);
303
this.extensions = { [key]: value, ...this.extensions };
304
}
@@ -308,7 +308,7 @@ export class CloudEvent {
308
* @see https://github.com/cloudevents/spec/blob/master/spec.md#extension-context-attributes
309
* @returns {Object} the extensions attributes - if none exist will will be {}
310
311
- getExtensions() {
+ getExtensions(): object {
312
return this.extensions;
313
314
0 commit comments