Upgrade to typescript 5.7.2 (#4569)
* Upgrade to typescript 5.7.2 * Fix tsc errors
This commit is contained in:
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user