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.17k stars 90 forks source link

Export additional types #298

Open ericallam opened 2 months ago

ericallam commented 2 months ago

We want to give users the ability to add custom transformers, and for that to work nicely with typescript we need these types. I tried to do export type but prettier threw an error (see https://github.com/prettier/prettier-vscode/issues/2558), so I just exported them as values instead.