summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyoshoka <107108195+zyoshoka@users.noreply.github.com>2024-09-25 17:35:54 +0900
committerGitHub <noreply@github.com>2024-09-25 17:35:54 +0900
commitf2385a8ffc5c8fe8b5e18fc4657d321d5f13be63 (patch)
tree66ab507806cc3bf4acb992cd84870e5557611c08
parentfix(frontend-embed): fix instanceticker, remove directives (#14631) (diff)
downloadsharkey-f2385a8ffc5c8fe8b5e18fc4657d321d5f13be63.tar.gz
sharkey-f2385a8ffc5c8fe8b5e18fc4657d321d5f13be63.tar.bz2
sharkey-f2385a8ffc5c8fe8b5e18fc4657d321d5f13be63.zip
fix(misskey-js): correct `noteUpdated` event type (#14632)
-rw-r--r--packages/misskey-js/src/streaming.types.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/misskey-js/src/streaming.types.ts b/packages/misskey-js/src/streaming.types.ts
index 99d8a56e75..26a50f9fa4 100644
--- a/packages/misskey-js/src/streaming.types.ts
+++ b/packages/misskey-js/src/streaming.types.ts
@@ -233,7 +233,7 @@ export type Channels = {
}
};
-export type NoteUpdatedEvent = {
+export type NoteUpdatedEvent = { id: Note['id'] } & ({
type: 'reacted';
body: {
reaction: string;
@@ -257,7 +257,7 @@ export type NoteUpdatedEvent = {
choice: number;
userId: User['id'];
};
-};
+});
export type BroadcastEvents = {
noteUpdated: (payload: NoteUpdatedEvent) => void;