fix typo
This commit is contained in:
parent
127a1320a8
commit
dfc8a09f44
|
@ -2,7 +2,7 @@ import autobind from 'autobind-decorator';
|
||||||
import { EventEmitter } from 'eventemitter3';
|
import { EventEmitter } from 'eventemitter3';
|
||||||
import ReconnectingWebsocket from 'reconnecting-websocket';
|
import ReconnectingWebsocket from 'reconnecting-websocket';
|
||||||
import { stringify } from 'querystring';
|
import { stringify } from 'querystring';
|
||||||
import { BroadcasrEvents, Channels } from './streaming.types';
|
import { BroadcastEvents, Channels } from './streaming.types';
|
||||||
|
|
||||||
function urlQuery(obj: {}): string {
|
function urlQuery(obj: {}): string {
|
||||||
return stringify(Object.entries(obj)
|
return stringify(Object.entries(obj)
|
||||||
|
@ -15,7 +15,7 @@ type AnyOf<T extends Record<any, any>> = T[keyof T];
|
||||||
type StreamEvents = {
|
type StreamEvents = {
|
||||||
_connected_: void;
|
_connected_: void;
|
||||||
_disconnected_: void;
|
_disconnected_: void;
|
||||||
} & BroadcasrEvents;
|
} & BroadcastEvents;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Misskey stream connection
|
* Misskey stream connection
|
||||||
|
|
|
@ -126,7 +126,7 @@ export type NoteUpdatedEvent = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BroadcasrEvents = {
|
export type BroadcastEvents = {
|
||||||
noteUpdated: (payload: NoteUpdatedEvent) => void;
|
noteUpdated: (payload: NoteUpdatedEvent) => void;
|
||||||
emojiAdded: (payload: {
|
emojiAdded: (payload: {
|
||||||
emoji: CustomEmoji;
|
emoji: CustomEmoji;
|
||||||
|
|
Loading…
Reference in New Issue