@quenk/preconditions
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Record
Failure
fail
Index
Classes
Record
Failure
Functions
fail
Functions
Const
fail
fail<A, B, R>
(
failures
:
Failures
<
A
>
, value
:
Record
<
A
>
, ctx
?:
Contexts
)
:
Result
<
Record
<
A
>
,
R
>
fail constructs a new RecordFailure wrapped in the left part of a Result.
Type parameters
A
B
R
:
Record
<
B
>
Parameters
failures:
Failures
<
A
>
value:
Record
<
A
>
Default value
ctx:
Contexts
= {}
Returns
Result
<
Record
<
A
>
,
R
>
Generated using
TypeDoc
fail constructs a new RecordFailure wrapped in the left part of a Result.