Skip to content

Commit

Permalink
fix(misskey-js): correct noteUpdated event type (misskey-dev#14632)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka authored Sep 25, 2024
1 parent 0f8b15f commit f2385a8
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 f2385a8

Please sign in to comment.