Skip to content

Commit

Permalink
feat(types): add Events fix #10880
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Dec 15, 2021
1 parent de2b891 commit 167ffee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/taro/types/taro.extend.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ declare module './index' {
}

interface TaroStatic {
Events: {
new (): TaroGeneral.Events
}

// eventCenter
eventCenter: TaroGeneral.Events

Expand Down

0 comments on commit 167ffee

Please sign in to comment.