From ac3dbcb11444f6707b3062f3f9a0491c250e451d Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 6 Sep 2021 20:20:39 +0900 Subject: [PATCH] wip --- src/server/api/stream/types.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/server/api/stream/types.ts b/src/server/api/stream/types.ts index e35a810ac7..32ba414b30 100644 --- a/src/server/api/stream/types.ts +++ b/src/server/api/stream/types.ts @@ -149,7 +149,5 @@ interface StreamMessages { //#endregion // API event definitions -type Events = { - [x in S[T]['name']]: (e: S[T]['spec']) => void -}; -export type StreamEventEmitter = Emitter>; +type EventsGenerater = { [key in StreamMessages[K]['name']]: (e: StreamMessages[K]['spec']) => void }; +export type StreamEventEmitter = Emitter>;