Upgrade to typescript 5.7.2 (#4569)

* Upgrade to typescript 5.7.2

* Fix tsc errors
This commit is contained in:
Jonathan Tran
2024-11-25 15:37:04 -05:00
committed by GitHub
parent ac605c2434
commit ce1a37e0bc
6 changed files with 17 additions and 8 deletions

View File

@ -26,7 +26,7 @@ export default class StreamDemuxer extends Queue<Uint8Array> {
private async start(): Promise<void> {
let contentLength: null | number = null
let buffer = new Uint8Array()
let buffer: Uint8Array = new Uint8Array()
for await (const bytes of this) {
buffer = Bytes.append(Uint8Array, buffer, bytes)

View File

@ -95,6 +95,10 @@ export default class Queue<T>
return this
}
[Symbol.asyncDispose](): Promise<void> {
return this.close()
}
get locked(): boolean {
return this.#stream.locked
}