( parseRight: ParseResult.DecodeUnknown<R, RR>, decodeUnknownLeft: ParseResult.DecodeUnknown<L, LR> )
| 7400 | }) |
| 7401 | |
| 7402 | const eitherParse = <RR, R, LR, L>( |
| 7403 | parseRight: ParseResult.DecodeUnknown<R, RR>, |
| 7404 | decodeUnknownLeft: ParseResult.DecodeUnknown<L, LR> |
| 7405 | ): ParseResult.DeclarationDecodeUnknown<either_.Either<R, L>, LR | RR> => |
| 7406 | (u, options, ast) => |
| 7407 | either_.isEither(u) ? |
| 7408 | either_.match(u, { |
| 7409 | onLeft: (left) => toComposite(decodeUnknownLeft(left, options), either_.left, ast, u), |
| 7410 | onRight: (right) => toComposite(parseRight(right, options), either_.right, ast, u) |
| 7411 | }) |
| 7412 | : ParseResult.fail(new ParseResult.Type(ast, u)) |
| 7413 | |
| 7414 | /** |
| 7415 | * @category api interface |
no test coverage detected
searching dependent graphs…