diff --git a/src/renderer/utils/readableStream.ts b/src/renderer/utils/readableStream.ts index 9cd91f6ccb..85f5a81bac 100644 --- a/src/renderer/utils/readableStream.ts +++ b/src/renderer/utils/readableStream.ts @@ -20,18 +20,7 @@ */ import { Readable } from "readable-stream"; - -type TypeArray = Int8Array - | Uint8Array - | Uint8ClampedArray - | Int16Array - | Uint16Array - | Int32Array - | Uint32Array - | Float32Array - | Float64Array - | BigInt64Array - | BigUint64Array; +import type { TypedArray } from "type-fest"; /** * ReadableWebToNodeStream @@ -41,7 +30,7 @@ type TypeArray = Int8Array * Adds read error handler * * */ -export class ReadableWebToNodeStream extends Readable { +export class ReadableWebToNodeStream extends Readable { public bytesRead = 0; public released = false;