Skip to content

Commit eb5cf3b

Browse files
committed
web/storage/memory: fix the type of chunks
1 parent 728d225 commit eb5cf3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/lib/storage/memory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { uuid } from "$lib/util";
44
export class MemoryStorage extends AbstractStorage {
55
#chunkSize: number;
66
#actualSize: number = 0;
7-
#chunks: Uint8Array[] = [];
7+
#chunks: Uint8Array<ArrayBuffer>[] = [];
88

99
constructor(chunkSize: number) {
1010
super();
@@ -33,7 +33,7 @@ export class MemoryStorage extends AbstractStorage {
3333
async res() {
3434
// if we didn't need as much space as we allocated for some reason,
3535
// shrink the buffers so that we don't inflate the file with zeroes
36-
const outputView: Uint8Array[] = [];
36+
const outputView: Uint8Array<ArrayBuffer>[] = [];
3737

3838
for (let i = 0; i < this.#chunks.length; ++i) {
3939
outputView.push(

0 commit comments

Comments
 (0)