Skip to content

Commit

Permalink
Make explicit that decode() method supports Uint8Array input (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
jardicc authored Sep 18, 2021
1 parent 1d8d89e commit 4a7086f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4a7086f

Please sign in to comment.