From 86db8e30fe6e87b41823b5b304e75c0d0db08bec Mon Sep 17 00:00:00 2001 From: ranbochen Date: Thu, 26 Jul 2018 21:20:10 +0800 Subject: [PATCH] Update index.d.ts Buffer is a subclass of Uint8Array --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 8814356..48d3c3c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ declare module 'buffer' { - export class Buffer { + export class Buffer extends Uint8Array { length: number write(string: string, offset?: number, length?: number, encoding?: string): number; toString(encoding?: string, start?: number, end?: number): string; @@ -184,4 +184,4 @@ declare module 'buffer' { */ static allocUnsafeSlow(size: number): Buffer; } -} \ No newline at end of file +} -- 2.34.1