Fix typescript error with non-annotated argument.

This commit is contained in:
Andrew Lalis 2023-08-24 15:41:18 -04:00
parent f3fe5e9671
commit 6eabfe4c6e
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export function getSecondsTilExpire(token: string): number {
*
* @return Formatted string.
*/
export function humanFileSize(bytes, si=false, dp=1) {
export function humanFileSize(bytes: number, si=false, dp=1) {
const thresh = si ? 1000 : 1024;
if (Math.abs(bytes) < thresh) {