( right: Right, left: Left )
| 7370 | }).annotations({ description: `LeftEncoded<${format(left)}>` }) |
| 7371 | |
| 7372 | const eitherEncoded = <Right extends Schema.All, Left extends Schema.All>( |
| 7373 | right: Right, |
| 7374 | left: Left |
| 7375 | ) => |
| 7376 | Union(rightEncoded(right), leftEncoded(left)).annotations({ |
| 7377 | description: `EitherEncoded<${format(left)}, ${format(right)}>` |
| 7378 | }) |
| 7379 | |
| 7380 | const eitherDecode = <R, L>(input: EitherEncoded<R, L>): either_.Either<R, L> => |
| 7381 | input._tag === "Left" ? either_.left(input.left) : either_.right(input.right) |
no test coverage detected
searching dependent graphs…