Update type definition
This commit is contained in:
parent
b729000687
commit
bc3b3bb1c0
3 changed files with 19 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User } from './entities';
|
||||
import { CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User } from './entities';
|
||||
|
||||
export type ChannelDef = {
|
||||
main: {
|
||||
|
|
@ -80,3 +80,10 @@ export type NoteUpdatedEvent = {
|
|||
userId: User['id'];
|
||||
};
|
||||
};
|
||||
|
||||
export type BroadcasrEvents = {
|
||||
noteUpdated: (payload: NoteUpdatedEvent) => void;
|
||||
emojiAdded: (payload: {
|
||||
emoji: CustomEmoji;
|
||||
}) => void;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue