to support in browser it's better modify the type declaration Buffer to Buffer | Uint8Array in index.d.ts
creatxrgithub opened this issue · comments
原劍 commented
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;