Skip to content

Commit

Permalink
Fix fatal error when opening collaborative map (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Sep 24, 2023
1 parent a87fa42 commit 69386ea
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions server/src/utils/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ interface AddListener<EventTypes extends Record<keyof EventTypes, any[]>, This>

export class TypedEventEmitter<EventTypes extends Record<keyof EventTypes, any[]>> extends EventEmitter {

addListener!: AddListener<EventTypes, this>;
on!: AddListener<EventTypes, this>;
once!: AddListener<EventTypes, this>;
prependListener!: AddListener<EventTypes, this>;
prependOnceListener!: AddListener<EventTypes, this>;
removeListener!: AddListener<EventTypes, this>;
off!: AddListener<EventTypes, this>;
removeAllListeners!: (event?: EventName<EventTypes>) => this;
listeners!: (event: EventName<EventTypes>) => Function[];
rawListeners!: (event: EventName<EventTypes>) => Function[];
emit!: <E extends EventName<EventTypes>>(event: E, ...args: EventTypes[E]) => boolean;
eventNames!: () => Array<EventName<EventTypes>>;
listenerCount!: (type: EventName<EventTypes>) => number;
declare addListener: AddListener<EventTypes, this>;
declare on: AddListener<EventTypes, this>;
declare once: AddListener<EventTypes, this>;
declare prependListener: AddListener<EventTypes, this>;
declare prependOnceListener: AddListener<EventTypes, this>;
declare removeListener: AddListener<EventTypes, this>;
declare off: AddListener<EventTypes, this>;
declare removeAllListeners: (event?: EventName<EventTypes>) => this;
declare listeners: (event: EventName<EventTypes>) => Function[];
declare rawListeners: (event: EventName<EventTypes>) => Function[];
declare emit: <E extends EventName<EventTypes>>(event: E, ...args: EventTypes[E]) => boolean;
declare eventNames: () => Array<EventName<EventTypes>>;
declare listenerCount: (type: EventName<EventTypes>) => number;

}

0 comments on commit 69386ea

Please sign in to comment.