diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-28 18:34:20 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-06-28 18:34:20 +0900 |
| commit | 05a902f3a5090d162ce6fab0420ea88e7c06aa7c (patch) | |
| tree | 8696cd091e8153eee00b01f2008a210af92b170e /src | |
| parent | refactor (diff) | |
| download | misskey-05a902f3a5090d162ce6fab0420ea88e7c06aa7c.tar.gz misskey-05a902f3a5090d162ce6fab0420ea88e7c06aa7c.tar.bz2 misskey-05a902f3a5090d162ce6fab0420ea88e7c06aa7c.zip | |
improve type definitions
Diffstat (limited to 'src')
| -rw-r--r-- | src/streaming.types.ts | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/streaming.types.ts b/src/streaming.types.ts index b346be3bd4..46d7573663 100644 --- a/src/streaming.types.ts +++ b/src/streaming.types.ts @@ -1,5 +1,7 @@ import { CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities'; +type FIXME = any; + export type Channels = { main: { params: null; @@ -29,30 +31,35 @@ export type Channels = { unreadChannel: () => void; myTokenRegenerated: () => void; }; + receives: null; }; homeTimeline: { params: null; events: { note: (payload: Note) => void; }; + receives: null; }; localTimeline: { params: null; events: { note: (payload: Note) => void; }; + receives: null; }; hybridTimeline: { params: null; events: { note: (payload: Note) => void; }; + receives: null; }; globalTimeline: { params: null; events: { note: (payload: Note) => void; }; + receives: null; }; messaging: { params: { @@ -65,6 +72,35 @@ export type Channels = { read: (payload: MessagingMessage['id'][]) => void; typers: (payload: User[]) => void; }; + receives: { + read: { + id: MessagingMessage['id']; + }; + }; + }; + serverStats: { + params: null; + events: { + stats: (payload: FIXME) => void; + }; + receives: { + requestLog: { + id: string | number; + length: number; + }; + }; + }; + queueStats: { + params: null; + events: { + stats: (payload: FIXME) => void; + }; + receives: { + requestLog: { + id: string | number; + length: number; + }; + }; }; }; |