This commit is contained in:
syuilo 2021-07-10 23:20:56 +09:00
parent 127a1320a8
commit dfc8a09f44
2 changed files with 3 additions and 3 deletions

View file

@ -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 extends Record<any, any>> = T[keyof T];
type StreamEvents = {
_connected_: void;
_disconnected_: void;
} & BroadcasrEvents;
} & BroadcastEvents;
/**
* Misskey stream connection

View file

@ -126,7 +126,7 @@ export type NoteUpdatedEvent = {
};
};
export type BroadcasrEvents = {
export type BroadcastEvents = {
noteUpdated: (payload: NoteUpdatedEvent) => void;
emojiAdded: (payload: {
emoji: CustomEmoji;