A minimal Result
type library that composes well with ts-pattern
Rather than maintaining a larger API which incurs additional complexity, from
version 1 onwards failtype
is only concerned with just encoding success and
failure states at the type level.
If you need syntactical sugar then the safeTry
API from
neverthrow
may be more suitable
for your particular requirement/s.