fixup: incorporate review comments

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2021-02-25 13:52:53 -05:00
parent 1af3d43341
commit b006b90122
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ export class Emitter {
* @param {Function} listener to call on event
* @return {void}
*/
static on(event: string, listener: (...args: any[]) => void): void {
this.getInstance().on(event, listener);
static on(event: "cloudevent" | "newListener" | "removeListener", listener: (...args: any[]) => void): void {
Emitter.getInstance().on(event, listener);
}
/**