Update TypeScript, fix generic ArrayBufferView type errors, allow SharedArrayBuffer as input for BufferSource

This commit is contained in:
Vanilagy
2025-11-26 12:04:23 +01:00
parent f33dd4f2cd
commit 75096edb23
11 changed files with 318 additions and 478 deletions
+2 -2
View File
@@ -190,7 +190,7 @@ const MAX_CHUNKS_AT_ONCE = 2;
interface Chunk {
start: number;
written: ChunkSection[];
data: Uint8Array;
data: Uint8Array<ArrayBuffer>;
shouldFlush: boolean;
}
@@ -281,7 +281,7 @@ export class StreamTargetWriter extends Writer {
const chunks: {
start: number;
size: number;
data?: Uint8Array;
data?: Uint8Array<ArrayBuffer>;
}[] = [];
const sorted = [...this.sections].sort((a, b) => a.start - b.start);