From b0be0556f72b6043cfc044dd5eabaa9c75af18fa Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 14 Jul 2024 23:08:51 +0100 Subject: [PATCH] Update EventEmitter.ts --- src/helpers/EventEmitter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/EventEmitter.ts b/src/helpers/EventEmitter.ts index 23e837a..fc25e4c 100644 --- a/src/helpers/EventEmitter.ts +++ b/src/helpers/EventEmitter.ts @@ -15,7 +15,8 @@ export default class Emitter> { protected emit constructor() { - const emitter = mitt.default() + //@ts-expect-error + const emitter = mitt() this._on = emitter.on this._off = emitter.off