Procházet zdrojové kódy

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 před 2 roky
rodič
revize
3536aa00d1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tooling/api/src/event.ts

+ 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