From 1590cf000fd282d0f0c600acab740e2f64bb5f06 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 7 Sep 2021 03:58:58 +0900 Subject: [PATCH] edit comment --- src/server/api/stream/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/stream/types.ts b/src/server/api/stream/types.ts index b497458ce5..2670d1ac87 100644 --- a/src/server/api/stream/types.ts +++ b/src/server/api/stream/types.ts @@ -300,7 +300,7 @@ type EventsDictionary = { [x in keyof StreamMessages]: Emitter = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never; // Emitter辞書をストリームごとに共用体型にし、UnionToIntersectionで交差型にする export type StreamEventEmitter = UnionToIntersection; -// そうしないとなぜかユニオン型が増えまくり、ts(2590)にひっかかる +// そうしないとユニオンが増大してts(2590)にひっかかる // provide stream channels union export type StreamChannels = StreamMessages[keyof StreamMessages]['name'] | 'notesStream';