(event: string, ...args: unknown[])
| 53 | }); |
| 54 | |
| 55 | function emit(event: string, ...args: unknown[]): void { |
| 56 | const arr = listeners.get(event); |
| 57 | if (!arr) return; |
| 58 | for (const cb of arr) { |
| 59 | cb(...args); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | return { |
| 64 | channel, |
no test coverage detected