We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ts-ignore
1 parent e3c06c9 commit cd0b2cbCopy full SHA for cd0b2cb
humanize-duration.js
@@ -1682,8 +1682,12 @@
1682
if (character === ".") {
1683
formattedCount += decimal;
1684
} else {
1685
- // @ts-ignore because `character` should always be 0-9 at this point.
1686
- formattedCount += digitReplacements[character];
+ formattedCount +=
+ digitReplacements[
1687
+ /** @type {"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"} */ (
1688
+ character
1689
+ )
1690
+ ];
1691
}
1692
1693
0 commit comments