Explorar el Código

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 hace 2 años
padre
commit
3536aa00d1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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