mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 17:03:08 +02:00
fix typo
This commit is contained in:
parent
127a1320a8
commit
dfc8a09f44
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -126,7 +126,7 @@ export type NoteUpdatedEvent = {
|
|||
};
|
||||
};
|
||||
|
||||
export type BroadcasrEvents = {
|
||||
export type BroadcastEvents = {
|
||||
noteUpdated: (payload: NoteUpdatedEvent) => void;
|
||||
emojiAdded: (payload: {
|
||||
emoji: CustomEmoji;
|
||||
|
|
Loading…
Reference in a new issue