mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(knip): trim dead exports and tool noise
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { BOARD_REPLIES_PREVIEW_VISIBLE_COUNT } from '../constants';
|
||||
|
||||
export interface CommentLike {
|
||||
interface CommentLike {
|
||||
cid?: string | null;
|
||||
index?: number;
|
||||
pendingApproval?: boolean;
|
||||
@@ -35,7 +35,7 @@ export function getPreviewDisplayReplies<T extends CommentLike>(replies: T[], vi
|
||||
.map((t) => t.reply);
|
||||
}
|
||||
|
||||
export interface ComputeOmittedParams {
|
||||
interface ComputeOmittedParams {
|
||||
totalReplyCount: number;
|
||||
visibleCount: number;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export function computeOmittedCount({ totalReplyCount, visibleCount }: ComputeOm
|
||||
return Math.max(0, totalReplyCount - visibleCount);
|
||||
}
|
||||
|
||||
export interface GetTotalReplyCountParams {
|
||||
interface GetTotalReplyCountParams {
|
||||
replyCount: number | undefined;
|
||||
fullLoadedCount: number;
|
||||
previewLoadedCount: number;
|
||||
|
||||
Reference in New Issue
Block a user