From 1bc5e4772e66c28b2c440f2e1115bcb82fd1a343 Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Mon, 12 May 2025 20:06:30 +0200 Subject: [PATCH] fix: ensure length is treated as a number when starting progress bar --- src/utils/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/download.ts b/src/utils/download.ts index 11dc6a9..302bd04 100644 --- a/src/utils/download.ts +++ b/src/utils/download.ts @@ -38,7 +38,7 @@ export async function downloadFileToLocation( }) : process.stdout, }) - progressBar.start(length, receivedBytes) + progressBar.start(length as number, receivedBytes) data.on('data', (chunk: { length: number }) => { receivedBytes += chunk.length