From 02b6885f722e5d1993c569a51b799e03ddb08f05 Mon Sep 17 00:00:00 2001 From: Bradley Odell Date: Sat, 7 Oct 2023 19:29:34 -0700 Subject: [PATCH] Redefined subarray in index.d.ts to return Buffer (#298) --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 07096a2..e461a2b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,6 +7,7 @@ export class Buffer extends Uint8Array { compare(otherBuffer: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number; copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; slice(start?: number, end?: number): Buffer; + subarray(start?: number, end?: number): Buffer; writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; -- 2.34.1