]> zoso.dev Git - buffer.git/commitdiff
Redefined subarray in index.d.ts to return Buffer (#298)
authorBradley Odell <btodell@hotmail.com>
Sun, 8 Oct 2023 02:29:34 +0000 (19:29 -0700)
committerGitHub <noreply@github.com>
Sun, 8 Oct 2023 02:29:34 +0000 (13:29 +1100)
index.d.ts

index 07096a2f725aaccf84776b5e8158ac95038484cf..e461a2bdf35518aaaabb938384d985d0a594b28a 100644 (file)
@@ -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;