mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)
This commit is contained in:
@@ -8,7 +8,7 @@ function uuidv4(): string {
|
||||
|
||||
/** Generic Event Emitter class following a subscribe/publish paradigm. */
|
||||
export class EventEmitter<T extends any[]> {
|
||||
subscribers: { [key: string]: (...args: [...T]) => void | undefined } = {};
|
||||
subscribers: Record<string, (...args: [...T]) => void | undefined> = {};
|
||||
|
||||
subscribe(s: (...args: [...T]) => void): () => void {
|
||||
let uuid = uuidv4();
|
||||
|
||||
Reference in New Issue
Block a user