From 3536aa00d1fdc19e4c6f9526c0f037738725697b Mon Sep 17 00:00:00 2001 From: 2nthony Date: Thu, 16 Mar 2023 20:16:50 +0800 Subject: [PATCH] fix(api): event name types (#6318) * fix(api): event name * suggestion change Co-authored-by: Amr Bashir --------- Co-authored-by: Amr Bashir --- tooling/api/src/event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/api/src/event.ts b/tooling/api/src/event.ts index 2070beffc..9e1508c54 100644 --- a/tooling/api/src/event.ts +++ b/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) /** * @since 1.1.0