Consistent event name usage (#3228)

This commit is contained in:
Jonas Kruckenberg
2022-01-15 21:47:15 +01:00
committed by GitHub
parent 5b66dede9b
commit b5d9bcb402
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"api": minor
---
Change the `event` field of the `Event` interface to type `EventName` instead of `string`.

View File

@@ -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 */