fix(misskey-js): correct noteUpdated
event type (#14632)
This commit is contained in:
@@ -233,7 +233,7 @@ export type Channels = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export type NoteUpdatedEvent = {
|
export type NoteUpdatedEvent = { id: Note['id'] } & ({
|
||||||
type: 'reacted';
|
type: 'reacted';
|
||||||
body: {
|
body: {
|
||||||
reaction: string;
|
reaction: string;
|
||||||
@@ -257,7 +257,7 @@ export type NoteUpdatedEvent = {
|
|||||||
choice: number;
|
choice: number;
|
||||||
userId: User['id'];
|
userId: User['id'];
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
|
|
||||||
export type BroadcastEvents = {
|
export type BroadcastEvents = {
|
||||||
noteUpdated: (payload: NoteUpdatedEvent) => void;
|
noteUpdated: (payload: NoteUpdatedEvent) => void;
|
||||||
|
Reference in New Issue
Block a user