mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-08 00:27:47 +02:00
CODEBASE: Fix lint errors 1 (#1732)
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
/** Generic Event Emitter class following a subscribe/publish paradigm. */
|
||||
export class EventEmitter<T extends any[]> {
|
||||
private subscribers: Set<(...args: [...T]) => void | undefined> = new Set();
|
||||
|
||||
constructor() {}
|
||||
private subscribers: Set<(...args: [...T]) => void> = new Set();
|
||||
|
||||
subscribe(s: (...args: [...T]) => void): () => void {
|
||||
this.subscribers.add(s);
|
||||
|
||||
Reference in New Issue
Block a user