Skip to content

Commit fc407cb

Browse files
committed
chore: adds the return type for the extensions
Signed-off-by: Lucas Holmquist <[email protected]>
1 parent 99bb88b commit fc407cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/cloudevent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class CloudEvent {
298298
* @param {*} value the value of the extension attribute
299299
* @returns {void}
300300
*/
301-
addExtension(key: string, value: any) {
301+
addExtension(key: string, value: any): void {
302302
this.spec.addExtension(key, value);
303303
this.extensions = { [key]: value, ...this.extensions };
304304
}
@@ -308,7 +308,7 @@ export class CloudEvent {
308308
* @see https://github.com/cloudevents/spec/blob/master/spec.md#extension-context-attributes
309309
* @returns {Object} the extensions attributes - if none exist will will be {}
310310
*/
311-
getExtensions() {
311+
getExtensions(): object {
312312
return this.extensions;
313313
}
314314
}

0 commit comments

Comments
 (0)