diff options
| author | Fuwn <[email protected]> | 2026-04-28 05:34:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-28 05:34:14 -0700 |
| commit | 1e149a29f6732c245364aa551fd08e2991310d98 (patch) | |
| tree | cbafe7526a00309a44a66e11913e8c3b7147f208 /src/lib/Media/Anime/Airing/format.ts | |
| parent | refactor(airing): unify countdown formatter into shared helper (diff) | |
| download | due.moe-1e149a29f6732c245364aa551fd08e2991310d98.tar.xz due.moe-1e149a29f6732c245364aa551fd08e2991310d98.zip | |
style: apply biome formatter
Diffstat (limited to 'src/lib/Media/Anime/Airing/format.ts')
| -rw-r--r-- | src/lib/Media/Anime/Airing/format.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Media/Anime/Airing/format.ts b/src/lib/Media/Anime/Airing/format.ts index 5fec3cc8..a7819999 100644 --- a/src/lib/Media/Anime/Airing/format.ts +++ b/src/lib/Media/Anime/Airing/format.ts @@ -10,7 +10,12 @@ type Result = { few: boolean; }; -const plural = (value: number, short: boolean, longUnit: string, shortUnit: string) => +const plural = ( + value: number, + short: boolean, + longUnit: string, + shortUnit: string, +) => `${value}${short ? shortUnit : ` ${longUnit}`}${value === 1 || short ? "" : "s"}`; export const formatCountdown = ( |