型の漏れを修正

This commit is contained in:
syuilo 2025-08-27 17:05:29 +09:00
parent 439337a108
commit e72da587e4
2 changed files with 17 additions and 1 deletions

View File

@ -167,6 +167,7 @@ export const moderationLogTypes = [
'deleteFlash', 'deleteFlash',
'deleteGalleryPost', 'deleteGalleryPost',
'deleteChatRoom', 'deleteChatRoom',
'updateProxyAccountDescription',
] as const; ] as const;
export const queueTypes = [ export const queueTypes = [
@ -193,7 +194,15 @@ export const reversiUpdateKeys = [
export type ReversiUpdateKey = typeof reversiUpdateKeys[number]; export type ReversiUpdateKey = typeof reversiUpdateKeys[number];
type AvatarDecoration = UserLite['avatarDecorations'][number]; type AvatarDecoration = {
id: string;
name: string;
url: string;
angle?: number;
flipH?: boolean;
offsetX?: number;
offsetY?: number;
};
type ReceivedAbuseReport = { type ReceivedAbuseReport = {
reportId: AbuseReportNotificationRecipient['id']; reportId: AbuseReportNotificationRecipient['id'];
@ -455,4 +464,8 @@ export type ModerationLogPayloads = {
roomId: string; roomId: string;
room: ChatRoom; room: ChatRoom;
}; };
updateProxyAccountDescription: {
before: string | null;
after: string | null;
}
}; };

View File

@ -203,6 +203,9 @@ export type ModerationLog = {
} | { } | {
type: 'deleteChatRoom'; type: 'deleteChatRoom';
info: ModerationLogPayloads['deleteChatRoom']; info: ModerationLogPayloads['deleteChatRoom'];
} | {
type: 'updateProxyAccountDescription';
info: ModerationLogPayloads['updateProxyAccountDescription'];
}); });
export type ServerStats = { export type ServerStats = {