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 dc36e68 commit 5021cf0Copy full SHA for 5021cf0
src/ReEmitter.ts
@@ -19,13 +19,9 @@ limitations under the License.
19
import { EventEmitter } from "events";
20
21
export class ReEmitter {
22
- private target: EventEmitter;
+ constructor(private readonly target: EventEmitter) {}
23
24
- constructor(target: EventEmitter) {
25
- this.target = target;
26
- }
27
-
28
- reEmit(source: EventEmitter, eventNames: string[]) {
+ public reEmit(source: EventEmitter, eventNames: string[]): void {
29
for (const eventName of eventNames) {
30
// We include the source as the last argument for event handlers which may need it,
31
// such as read receipt listeners on the client class which won't have the context
0 commit comments