From eb5cf3b64c26543dcf052529b2e005813b4e92ca Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 24 Dec 2025 00:03:36 +0600 Subject: [PATCH] web/storage/memory: fix the type of chunks --- web/src/lib/storage/memory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/storage/memory.ts b/web/src/lib/storage/memory.ts index fc462f0b..289eff01 100644 --- a/web/src/lib/storage/memory.ts +++ b/web/src/lib/storage/memory.ts @@ -4,7 +4,7 @@ import { uuid } from "$lib/util"; export class MemoryStorage extends AbstractStorage { #chunkSize: number; #actualSize: number = 0; - #chunks: Uint8Array[] = []; + #chunks: Uint8Array[] = []; constructor(chunkSize: number) { super(); @@ -33,7 +33,7 @@ export class MemoryStorage extends AbstractStorage { async res() { // if we didn't need as much space as we allocated for some reason, // shrink the buffers so that we don't inflate the file with zeroes - const outputView: Uint8Array[] = []; + const outputView: Uint8Array[] = []; for (let i = 0; i < this.#chunks.length; ++i) { outputView.push(