mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
Consistent event name usage (#3228)
This commit is contained in:
committed by
GitHub
parent
5b66dede9b
commit
b5d9bcb402
5
.changes/consistent-event-name-usage.md
Normal file
5
.changes/consistent-event-name-usage.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"api": minor
|
||||
---
|
||||
|
||||
Change the `event` field of the `Event` interface to type `EventName` instead of `string`.
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user