Skip to content

Commit c460d15

Browse files
Type casted Eventbus instance that would get created (#26)
2 parents 9e8841c + 55b10b7 commit c460d15

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)