From e8eb53c347456ecc1a520c3ad3d07db5ec73b8c4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 20 Feb 2026 11:13:17 +0200 Subject: [PATCH] =?UTF-8?q?remove=20now-unneeded=20ts-expect-error=20?= =?UTF-8?q?=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PostControls/util.ts | 1 - src/view/com/util/numeric/format.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/components/PostControls/util.ts b/src/components/PostControls/util.ts index c220cea397..6dc395882c 100644 --- a/src/components/PostControls/util.ts +++ b/src/components/PostControls/util.ts @@ -15,7 +15,6 @@ export function useFormatPostStatCount() { return i18n.number(postStatCount, { notation: 'compact', maximumFractionDigits: isOver10k ? 0 : 1, - // @ts-expect-error - roundingMode not in the types roundingMode: 'trunc', }) }, diff --git a/src/view/com/util/numeric/format.ts b/src/view/com/util/numeric/format.ts index f05f285401..9b750b1f23 100644 --- a/src/view/com/util/numeric/format.ts +++ b/src/view/com/util/numeric/format.ts @@ -4,7 +4,6 @@ export const formatCount = (i18n: I18n, num: number) => { return i18n.number(num, { notation: 'compact', maximumFractionDigits: 1, - // @ts-expect-error - roundingMode not in the types roundingMode: 'trunc', }) }