remove now-unneeded ts-expect-error 🎉
This commit is contained in:
@@ -15,7 +15,6 @@ export function useFormatPostStatCount() {
|
|||||||
return i18n.number(postStatCount, {
|
return i18n.number(postStatCount, {
|
||||||
notation: 'compact',
|
notation: 'compact',
|
||||||
maximumFractionDigits: isOver10k ? 0 : 1,
|
maximumFractionDigits: isOver10k ? 0 : 1,
|
||||||
// @ts-expect-error - roundingMode not in the types
|
|
||||||
roundingMode: 'trunc',
|
roundingMode: 'trunc',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ export const formatCount = (i18n: I18n, num: number) => {
|
|||||||
return i18n.number(num, {
|
return i18n.number(num, {
|
||||||
notation: 'compact',
|
notation: 'compact',
|
||||||
maximumFractionDigits: 1,
|
maximumFractionDigits: 1,
|
||||||
// @ts-expect-error - roundingMode not in the types
|
|
||||||
roundingMode: 'trunc',
|
roundingMode: 'trunc',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user