fixed some type errors

This commit is contained in:
2025-06-10 14:07:40 +02:00
parent 841446082e
commit d58be34fe5
22 changed files with 266 additions and 216 deletions

View File

@@ -7,7 +7,7 @@ const GIGA = MEGA * KILO;
* @param {number} size
* @returns{string}
*/
export default function shortenFileSize(size) {
export default function shortenFileSize(size: number) {
const giga = Math.floor(size / GIGA);
let remainder = size % GIGA;
const mega = Math.floor(remainder / MEGA);