From 4a7086f81a3793d8184ce0835008e4f8c7b3ef41 Mon Sep 17 00:00:00 2001 From: Jaroslav Bereza <13526959+jardicc@users.noreply.github.com> Date: Sat, 18 Sep 2021 20:08:07 +0200 Subject: [PATCH] Make explicit that decode() method supports Uint8Array input (#271) --- lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 99f200f..6cdada8 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -7,7 +7,7 @@ declare module 'iconv-lite' { // Basic API - export function decode(buffer: Buffer, encoding: string, options?: Options): string; + export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string; export function encode(content: string, encoding: string, options?: Options): Buffer;