We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 728d225 commit eb5cf3bCopy full SHA for eb5cf3b
web/src/lib/storage/memory.ts
@@ -4,7 +4,7 @@ import { uuid } from "$lib/util";
4
export class MemoryStorage extends AbstractStorage {
5
#chunkSize: number;
6
#actualSize: number = 0;
7
- #chunks: Uint8Array[] = [];
+ #chunks: Uint8Array<ArrayBuffer>[] = [];
8
9
constructor(chunkSize: number) {
10
super();
@@ -33,7 +33,7 @@ export class MemoryStorage extends AbstractStorage {
33
async res() {
34
// if we didn't need as much space as we allocated for some reason,
35
// shrink the buffers so that we don't inflate the file with zeroes
36
- const outputView: Uint8Array[] = [];
+ const outputView: Uint8Array<ArrayBuffer>[] = [];
37
38
for (let i = 0; i < this.#chunks.length; ++i) {
39
outputView.push(
0 commit comments