remove ts-expect-error
This commit is contained in:
@@ -5,8 +5,6 @@ export const formatCount = (i18n: I18n, num: number) => {
|
|||||||
notation: 'compact',
|
notation: 'compact',
|
||||||
maximumFractionDigits: 1,
|
maximumFractionDigits: 1,
|
||||||
// `1,953` shouldn't be rounded up to 2k, it should be truncated.
|
// `1,953` shouldn't be rounded up to 2k, it should be truncated.
|
||||||
// @ts-expect-error: `roundingMode` doesn't seem to be in the typings yet
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingmode
|
|
||||||
roundingMode: 'trunc',
|
roundingMode: 'trunc',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user