From: Bradley Odell Date: Sun, 8 Oct 2023 02:29:34 +0000 (-0700) Subject: Redefined subarray in index.d.ts to return Buffer (#298) X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=02b6885f722e5d1993c569a51b799e03ddb08f05;p=buffer.git Redefined subarray in index.d.ts to return Buffer (#298) --- 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;