( f: (e: E, options: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, R> )
| 559 | * @since 4.0.0 |
| 560 | */ |
| 561 | export function transformOrFail<T, E, R = never>( |
| 562 | f: (e: E, options: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, R> |
| 563 | ): Getter<T, E, R> { |
| 564 | return onSome((e, options) => f(e, options).pipe(Effect.mapEager(Option.some))) |
| 565 | } |
| 566 | |
| 567 | /** |
| 568 | * Creates a getter that transforms the full `Option` — both present and absent values. |
no test coverage detected