diff options
Diffstat (limited to 'js/blob.ts')
-rw-r--r-- | js/blob.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/blob.ts b/js/blob.ts index 092bfaa08..7b4d23c46 100644 --- a/js/blob.ts +++ b/js/blob.ts @@ -60,8 +60,8 @@ function processBlobParts( // instead of dynamic allocation. const uint8Arrays = toUint8Arrays(blobParts, normalizeLineEndingsToNative); const byteLength = uint8Arrays - .map(u8 => u8.byteLength) - .reduce((a, b) => a + b, 0); + .map((u8): number => u8.byteLength) + .reduce((a, b): number => a + b, 0); const ab = new ArrayBuffer(byteLength); const bytes = new Uint8Array(ab); |