fix(api): event name types (#6318)

* fix(api): event name

* suggestion change

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
2nthony
2023-03-16 20:16:50 +08:00
committed by GitHub
parent 1c8229fbe2
commit 3536aa00d1

View File

@@ -12,7 +12,7 @@
import * as eventApi from './helpers/event'
import type { EventCallback, UnlistenFn, Event } from './helpers/event'
export type EventName = TauriEvent | string
export type EventName = `${TauriEvent}` | (string & Record<never, never>)
/**
* @since 1.1.0