ストリーミング周りの型を修正
This commit is contained in:
@@ -117,9 +117,6 @@ export interface NoteEventTypes {
|
|||||||
deleted: {
|
deleted: {
|
||||||
deletedAt: Date;
|
deletedAt: Date;
|
||||||
};
|
};
|
||||||
updated: {
|
|
||||||
note: MiNote;
|
|
||||||
};
|
|
||||||
edited: {
|
edited: {
|
||||||
note: MiNote;
|
note: MiNote;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user