From ca82538e10c34cc7266fd2d2dc8795a439f33e9a Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 6 Sep 2021 17:16:30 +0900 Subject: [PATCH] fix lint --- src/server/api/stream/types.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/api/stream/types.ts b/src/server/api/stream/types.ts index 549af96fa8..e0c76306bd 100644 --- a/src/server/api/stream/types.ts +++ b/src/server/api/stream/types.ts @@ -19,7 +19,7 @@ type EventUnionFromDictionary< type EventUnionFromMkJSTypes< T extends { [key: string]: ((payload: any) => void) | (() => void) }, U = { [K in keyof T]: { type: K; body: Payload} } -> = U[keyof U] +> = U[keyof U]; export type BroadcastStream = EventUnionFromMkJSTypes; @@ -33,11 +33,11 @@ export interface UserEventTypes { follow: PackedUser; unfollow: PackedUser; userAdded: PackedUser; -}; +} export type UserEventName = `user:${User['id']}`; export type UserEvents = EventUnionFromDictionary; -export interface mainStreamTypes { +export interface MainStreamTypes { notification: PackedNotification; mention: PackedNote; reply: PackedNote; @@ -62,9 +62,9 @@ export interface mainStreamTypes { readAllChannels: never; unreadChannel: never; myTokenRegenerated: never; -}; +} export type mainStreamName = `mainStream:${User['id']}`; -export type mainStreams = EventUnionFromDictionary; +export type mainStreams = EventUnionFromDictionary; interface StreamEvents { 'broadcast': (e: BroadcastStream) => void;