Эх сурвалжийг харах

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>
2nthony 2 жил өмнө
parent
commit
3536aa00d1

+ 1 - 1
tooling/api/src/event.ts

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