fix: update progress bar start to use 'any' type for length

This commit is contained in:
Mr. M 2025-05-12 20:09:04 +02:00
parent 1bc5e4772e
commit 3a42ad5825
No known key found for this signature in database
GPG key ID: 6292C4C8F8652B18

View file

@ -38,7 +38,7 @@ export async function downloadFileToLocation(
}) })
: process.stdout, : process.stdout,
}) })
progressBar.start(length as number, receivedBytes) progressBar.start(length as any, receivedBytes)
data.on('data', (chunk: { length: number }) => { data.on('data', (chunk: { length: number }) => {
receivedBytes += chunk.length receivedBytes += chunk.length