Type aliases
Result
Result<A, B>
: Either<Failure<A>, B>
Type parameters
Functions
Const fail
-
Type parameters
Parameters
-
msg: string
-
value: A
-
Default value ctx: Context = {}
Returns Result<A, B>
Const succeed
- succeed<A, B>(b: B): Result<A, B>
-
Type parameters
Parameters
Returns Result<A, B>
Result of a precondition type.
A precondition either fails or provides a new value.