iconv-lite
iconv-lite copied to clipboard
to support in browser it's better modify the type declaration Buffer to Buffer | Uint8Array in index.d.ts
to support in browser it's better modify the type declaration Buffer | Uint8Array to Uint8Array in index.d.ts
e.g. replace all to Buffer | Uint8Array
export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string;
or maybe it's better only use Uint8Array
https://github.com/ashtuchkin/iconv-lite/issues/235