From dfc8a09f445f8b082c8d93910b6f1c113d413861 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 10 Jul 2021 23:20:56 +0900 Subject: [PATCH] fix typo --- src/streaming.ts | 4 ++-- src/streaming.types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/streaming.ts b/src/streaming.ts index 8507f28a86..c19c7aa804 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -2,7 +2,7 @@ import autobind from 'autobind-decorator'; import { EventEmitter } from 'eventemitter3'; import ReconnectingWebsocket from 'reconnecting-websocket'; import { stringify } from 'querystring'; -import { BroadcasrEvents, Channels } from './streaming.types'; +import { BroadcastEvents, Channels } from './streaming.types'; function urlQuery(obj: {}): string { return stringify(Object.entries(obj) @@ -15,7 +15,7 @@ type AnyOf> = T[keyof T]; type StreamEvents = { _connected_: void; _disconnected_: void; -} & BroadcasrEvents; +} & BroadcastEvents; /** * Misskey stream connection diff --git a/src/streaming.types.ts b/src/streaming.types.ts index 46d7573663..52f8405774 100644 --- a/src/streaming.types.ts +++ b/src/streaming.types.ts @@ -126,7 +126,7 @@ export type NoteUpdatedEvent = { }; }; -export type BroadcasrEvents = { +export type BroadcastEvents = { noteUpdated: (payload: NoteUpdatedEvent) => void; emojiAdded: (payload: { emoji: CustomEmoji;