refactor: avoid any

This commit is contained in:
Kisaragi
2025-03-06 19:41:30 +09:00
committed by GitHub
parent 46067f6e17
commit 01cb14f78d

View File

@@ -4,7 +4,8 @@
*/
import { MiUser } from '@/models/User.js';
import { MiNote } from '@/models/Note.js';
export function isReply(note: any, viewerId?: MiUser['id'] | undefined | null): boolean {
export function isReply(note: Note, viewerId?: MiUser['id'] | undefined | null): boolean {
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
}