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

Buffer / Uint8array support? #144

Closed
delaneyj opened this issue Jun 15, 2021 · 1 comment · Fixed by #155
Closed

Buffer / Uint8array support? #144

delaneyj opened this issue Jun 15, 2021 · 1 comment · Fixed by #155

Comments

@delaneyj
Copy link

Would be great if you could send and receive binary in base64 using this library to auto convert between browser and server.

@Skn0tt
Copy link
Collaborator

Skn0tt commented Jun 17, 2021

That's a great idea! Would you be interested in contributing a PR for this? You'd need to add a new transformer and some tests. Here's a code example: https://github.com/blitz-js/superjson/blob/59ab16bfa3e164fb1a53f374f1fefff46d24ec37/src/transformer.ts#L58

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

Successfully merging a pull request may close this issue.

2 participants