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 and HotoRas committed Sep 27, 2024
1 parent 059b31b commit 3a803d5
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 Down Expand Up @@ -263,7 +263,7 @@ export type NoteUpdatedEvent = {
choice: number;
userId: User['id'];
};
};
});

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

0 comments on commit 3a803d5

Please sign in to comment.