Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
creatxrgithub opened this issue Jan 8, 2024 · 1 comment

Comments

@creatxrgithub
Copy link

creatxrgithub commented Jan 8, 2024

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;
@creatxrgithub creatxrgithub changed the title 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 to Uint8Array in index.d.ts Jan 8, 2024
@creatxrgithub creatxrgithub changed the title to support in browser it's better modify the type declaration Buffer to Uint8Array in index.d.ts to support in browser it's better modify the type declaration Buffer to Buffer | Uint8Array in index.d.ts Jan 8, 2024
@creatxrgithub
Copy link
Author

or maybe it's better only use Uint8Array

#235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant