Skip to content

Commit

Permalink
Export type AllEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
wbt authored Sep 7, 2022
1 parent 92faf28 commit f8d210b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/target-truffle-v5/src/codegen/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export function codegenAllPossibleEvents(contract: Contract): string {
.map((e) => e.name)

if (allPossibleEvents.length === 0) {
return `type AllEvents = never`
return `export type AllEvents = never`
}
return `type AllEvents = ${allPossibleEvents.join(' | ')};`
return `export type AllEvents = ${allPossibleEvents.join(' | ')};`
}

export function codegenEventsEmitters(contract: Contract): string {
Expand Down

0 comments on commit f8d210b

Please sign in to comment.