forked from mirror/misskey
wip
This commit is contained in:
parent
70740c5e6d
commit
ac3dbcb114
@ -149,7 +149,5 @@ interface StreamMessages {
|
|||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
// API event definitions
|
// API event definitions
|
||||||
type Events<T extends keyof S> = {
|
type EventsGenerater<K extends keyof StreamMessages> = { [key in StreamMessages[K]['name']]: (e: StreamMessages[K]['spec']) => void };
|
||||||
[x in S[T]['name']]: (e: S[T]['spec']) => void
|
export type StreamEventEmitter = Emitter<EventEmitter, EventsGenerater<keyof StreamMessages>>;
|
||||||
};
|
|
||||||
export type StreamEventEmitter = Emitter<EventEmitter, Events<StreamMessages>>;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user