We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b66ded commit b5d9bcbCopy full SHA for b5d9bcb
2 files changed
.changes/consistent-event-name-usage.md
@@ -0,0 +1,5 @@
1
+---
2
+"api": minor
3
4
+
5
+Change the `event` field of the `Event` interface to type `EventName` instead of `string`.
tooling/api/src/event.ts
@@ -16,7 +16,7 @@ import { LiteralUnion } from 'type-fest'
16
17
interface Event<T> {
18
/** Event name */
19
- event: string
+ event: EventName
20
/** Event identifier used to unlisten */
21
id: number
22
/** Event payload */
0 commit comments