Skip to content

Commit 55b10b7

Browse files
committed
fix: type casted Eventbus instance that would get created
1 parent 9e8841c commit 55b10b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default class Editor {
184184
})
185185
// 监听
186186
this.listener = new Listener()
187-
this.eventBus = new EventBus()
187+
this.eventBus = new EventBus<EventBusMap>()
188188
// start up
189189
const draw = new Draw(
190190
container,

0 commit comments

Comments
 (0)