fixed some type errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user