8000 fixup: incorporate review comments · aarne/sdk-javascript@b006b90 · GitHub
[go: up one dir, main page]

Skip to content

Commit b006b90

Browse files
committed
fixup: incorporate review comments
Signed-off-by: Lance Ball <lball@redhat.com>
1 parent 1af3d43 commit b006b90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transport/emitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ export class Emitter {
8888
* @param {Function} listener to call on event
8989
* @return {void}
9090
*/
91-
static on(event: string, listener: (...args: any[]) => void): void {
92-
this.getInstance().on(event, listener);
91+
static on(event: "cloudevent" | "newListener" | "removeListener", listener: (...args: any[]) => void): void {
92+
Emitter.getInstance().on(event, listener);
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)
0