From 69386ea1b52fdd6272e22bb7d9d321abad9ee522 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sun, 24 Sep 2023 23:45:23 +0200 Subject: [PATCH] Fix fatal error when opening collaborative map (#248) --- server/src/utils/events.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/server/src/utils/events.ts b/server/src/utils/events.ts index ffca473d..4705b8de 100644 --- a/server/src/utils/events.ts +++ b/server/src/utils/events.ts @@ -10,18 +10,18 @@ interface AddListener, This> export class TypedEventEmitter> extends EventEmitter { - addListener!: AddListener; - on!: AddListener; - once!: AddListener; - prependListener!: AddListener; - prependOnceListener!: AddListener; - removeListener!: AddListener; - off!: AddListener; - removeAllListeners!: (event?: EventName) => this; - listeners!: (event: EventName) => Function[]; - rawListeners!: (event: EventName) => Function[]; - emit!: >(event: E, ...args: EventTypes[E]) => boolean; - eventNames!: () => Array>; - listenerCount!: (type: EventName) => number; + declare addListener: AddListener; + declare on: AddListener; + declare once: AddListener; + declare prependListener: AddListener; + declare prependOnceListener: AddListener; + declare removeListener: AddListener; + declare off: AddListener; + declare removeAllListeners: (event?: EventName) => this; + declare listeners: (event: EventName) => Function[]; + declare rawListeners: (event: EventName) => Function[]; + declare emit: >(event: E, ...args: EventTypes[E]) => boolean; + declare eventNames: () => Array>; + declare listenerCount: (type: EventName) => number; }