CODEBASE: Fix lint errors 1 (#1732)

This commit is contained in:
catloversg
2024-11-04 13:35:14 +07:00
committed by GitHub
parent f7ee3a340f
commit f6502dd490
55 changed files with 252 additions and 255 deletions
+1 -3
View File
@@ -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);