From 6eabfe4c6eb747402b53c0662e8ae193fbba3965 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Thu, 24 Aug 2023 15:41:18 -0400 Subject: [PATCH] Fix typescript error with non-annotated argument. --- litelist-app/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litelist-app/src/util.ts b/litelist-app/src/util.ts index e6d5855..fc63eb3 100644 --- a/litelist-app/src/util.ts +++ b/litelist-app/src/util.ts @@ -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) {