Skip to content

API Reference

This reference is generated from the source with TypeDoc at build time.

Packages

  • unthrown — the core Result / AsyncResult types, constructors (ok, err, defect), guards, boundary interop (fromNullable, fromThrowable, fromPromise, fromSafePromise), aggregation (all), and the tagged-error utilities (TaggedError, matchTags).
  • @unthrown/vitest — custom Vitest matchers (toBeOk, toBeOkWith, toBeErr, toBeErrTagged, toBeDefect).
  • @unthrown/pattern — thin ts-pattern sugar for the natively-matchable Result (P.ok/P.err/P.defect, tag).

Released under the MIT License.