Closed ymc9 closed 1 year ago
Hi there,
is Buffer type supported? It seems I can stringify but can't parse it back:
const superjson = require('superjson'); superjson.stringify({d: Buffer.from('hello')});
Uncaught Error: Trying to deserialize unknown typed array
Oh, I see that I need to register a custom type. Closing now 😄
Yup, custom type needed. It's not universally available on all platforms (only Node.js), so we can't make it a default type 🤷
Hi there,
is Buffer type supported? It seems I can stringify but can't parse it back:
Uncaught Error: Trying to deserialize unknown typed array