( first: Getter<T, E, R>, second: Getter<T2, T, R2> )
| 202 | Object.assign(Object.create(Pipeable.Prototype), fields) |
| 203 | |
| 204 | const composeOptionalEffect = <T, E, R, T2, R2>( |
| 205 | first: Getter<T, E, R>, |
| 206 | second: Getter<T2, T, R2> |
| 207 | ): Getter<T2, E, R | R2> => |
| 208 | transformOptionalEffect((input, options) => |
| 209 | Effect.flatMapEager(runGetter(first, input, options), (output) => runGetter(second, output, options)) |
| 210 | ) |
| 211 | |
| 212 | /** |
| 213 | * Composes two getters by passing the output of the first to the second. |
no test coverage detected