ストリーミング周りの型を修正

This commit is contained in:
GrapeApple0 2024-08-15 14:32:24 +00:00
parent 2943d3c3cd
commit f826b61723
3 changed files with 12 additions and 3 deletions

View File

@ -117,9 +117,6 @@ export interface NoteEventTypes {
deleted: { deleted: {
deletedAt: Date; deletedAt: Date;
}; };
updated: {
note: MiNote;
};
edited: { edited: {
note: MiNote; note: MiNote;
}; };

View File

@ -46,6 +46,13 @@ import { UtilityService } from '@/core/UtilityService.js';
import { UserBlockingService } from '@/core/UserBlockingService.js'; import { UserBlockingService } from '@/core/UserBlockingService.js';
import { ModerationLogService } from '@/core/ModerationLogService.js'; import { ModerationLogService } from '@/core/ModerationLogService.js';
type MinimumUser = {
id: MiUser['id'];
host: MiUser['host'];
username: MiUser['username'];
uri: MiUser['uri'];
};
type Option = { type Option = {
publishedAt?: Date | null; publishedAt?: Date | null;
name?: string | null; name?: string | null;

View File

@ -257,6 +257,11 @@ export type NoteUpdatedEvent = {
choice: number; choice: number;
userId: User['id']; userId: User['id'];
}; };
} | {
type: 'edited';
body: {
note: Note;
}
}; };
export type BroadcastEvents = { export type BroadcastEvents = {