mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 16:53:33 +00:00
6 lines
259 B
TypeScript
6 lines
259 B
TypeScript
import type { FileProgress } from './FileProgress.js'
|
|
|
|
export default function getBytesRemaining(fileProgress: FileProgress): number {
|
|
if (fileProgress.bytesTotal == null) return 0
|
|
return fileProgress.bytesTotal - (fileProgress.bytesUploaded as number)
|
|
}
|