kiliman / remix-typedjson

This package is a replacement for superjson to use in your Remix app. It handles a subset of types that `superjson` supports, but is faster and smaller.
MIT License
435 stars 19 forks source link

Add `useTypedCatch` #21

Closed TomerAberbach closed 4 months ago

TomerAberbach commented 1 year ago

useCatch can receive data too! This makes so that if someone throws a typedJson response, then they can catch it and deserialize it.

Aside: noticed that there's a lint script, but eslint is not installed and there's no config so I couldn't lint my changes.