Skip to content

safe-fn@0.1.2

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Aug 13:09
· 346 commits to main since this release
82cb49e

Patch Changes

  • 3572d25: - Add new types to infer result, ok/err data from action
    • Fix bug in not exporting ok()/err() properly
    • Add createAction() and add AnyCompleteSafeFn to easily use as server action
    • Add types for inferring result and argument for completeSafeFns
    • Fix Result type union by typing data and cause as undefined instead of never
    • Don't catch framework errors (currently only filtering Next redirect() and notFound())