refactor: avoid any
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { MiUser } from '@/models/User.js';
|
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;
|
return note.replyId && note.replyUserId !== note.userId && note.replyUserId !== viewerId;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user