Skip to content

Commit

Permalink
Consistent event name usage (#3228)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed Jan 15, 2022
1 parent 5b66ded commit b5d9bcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/consistent-event-name-usage.md
@@ -0,0 +1,5 @@
---
"api": minor
---

Change the `event` field of the `Event` interface to type `EventName` instead of `string`.
2 changes: 1 addition & 1 deletion tooling/api/src/event.ts
Expand Up @@ -16,7 +16,7 @@ import { LiteralUnion } from 'type-fest'

interface Event<T> {
/** Event name */
event: string
event: EventName
/** Event identifier used to unlisten */
id: number
/** Event payload */
Expand Down

0 comments on commit b5d9bcb

Please sign in to comment.