ashtuchkin / iconv-lite

Convert character encodings in pure javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

to support in browser it's better modify the type declaration Buffer to Buffer | Uint8Array in index.d.ts

creatxrgithub opened this issue · comments

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

#235