flightcontrolhq / superjson

Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more.
https://www.flightcontrol.dev?ref=superjson
MIT License
4.18k stars 90 forks source link

Export `SuperJSONValue` #300

Open BLucky-gh opened 1 month ago

BLucky-gh commented 1 month ago

Without having the type, it's annoying to create generic functions that serialize their input, since the developer has to just reimplement the types, usually by just copy pasting this library's code anyways