diff --git a/src/server/api/stream/types.ts b/src/server/api/stream/types.ts index 4508b4a371..72451628de 100644 --- a/src/server/api/stream/types.ts +++ b/src/server/api/stream/types.ts @@ -19,7 +19,7 @@ import { Packed } from '@/misc/schema'; // 辞書(interface or type)から{ type, body }ユニオンを定義 // https://stackoverflow.com/questions/49311989/can-i-infer-the-type-of-a-value-using-extends-keyof-type -type EventUnions = { [K in keyof T]: { type: K; body: T[K]; } } +type EventUnions = { [K in keyof T]: { type: K; body: T[K]; } }; type EventUnionFromDictionary< T extends object, U = EventUnions