( provided: Pr, value: Either.Either<Pr, RA> )
| 90 | } |
| 91 | |
| 92 | function makeValueMatcher<I, R, RA, A, Pr>( |
| 93 | provided: Pr, |
| 94 | value: Either.Either<Pr, RA> |
| 95 | ): ValueMatcher<I, R, RA, A, Pr> { |
| 96 | const matcher = Object.create(ValueMatcherProto) |
| 97 | matcher.provided = provided |
| 98 | matcher.value = value |
| 99 | return matcher |
| 100 | } |
| 101 | |
| 102 | const makeWhen = ( |
| 103 | guard: (u: unknown) => boolean, |