Skip to content

Commit

Permalink
fix(misskey-js): correct noteUpdated event type
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka committed Sep 25, 2024
1 parent 0f8b15f commit 6c78ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/misskey-js/src/streaming.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export type Channels = {
}
};

export type NoteUpdatedEvent = {
export type NoteUpdatedEvent = { id: Note['id'] } & ({
type: 'reacted';
body: {
reaction: string;
Expand All @@ -257,7 +257,7 @@ export type NoteUpdatedEvent = {
choice: number;
userId: User['id'];
};
};
});

export type BroadcastEvents = {
noteUpdated: (payload: NoteUpdatedEvent) => void;
Expand Down

0 comments on commit 6c78ee4

Please sign in to comment.