match
match<
E,A,B>(cases): (data) =>B
Defined in: Core/Validation.ts:204
Pattern matches on a Validation, returning the result of the matching case.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”failed
Section titled “failed”(errors) => B
passed
Section titled “passed”(a) => B
Returns
Section titled “Returns”(data) => B