fixup: incorporate review comments
Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
parent
1af3d43341
commit
b006b90122
|
@ -88,8 +88,8 @@ export class Emitter {
|
||||||
* @param {Function} listener to call on event
|
* @param {Function} listener to call on event
|
||||||
* @return {void}
|
* @return {void}
|
||||||
*/
|
*/
|
||||||
static on(event: string, listener: (...args: any[]) => void): void {
|
static on(event: "cloudevent" | "newListener" | "removeListener", listener: (...args: any[]) => void): void {
|
||||||
this.getInstance().on(event, listener);
|
Emitter.getInstance().on(event, listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue