Skip to content

Commit

Permalink
Update EventEmitter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 14, 2024
1 parent 87f165e commit b0be055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/EventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default class Emitter<Events extends Record<EventType, unknown>> {
protected emit

constructor() {
const emitter = mitt.default<Events>()
//@ts-expect-error
const emitter = mitt<Events>()

this._on = emitter.on
this._off = emitter.off
Expand Down

0 comments on commit b0be055

Please sign in to comment.