1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Use type-fest's TypedArray for ReadableWebToNodeStream (#2899)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-05-28 09:38:59 -04:00 committed by GitHub
parent 23dadaa1a1
commit 972d2f9a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<T extends TypeArray> extends Readable {
export class ReadableWebToNodeStream<T extends TypedArray> extends Readable {
public bytesRead = 0;
public released = false;