(options: {
readonly decode: (e: E, options: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, RD>
readonly encode: (t: T, options: SchemaAST.ParseOptions) => Effect.Effect<E, SchemaIssue.Issue, RE>
})
| 284 | * @since 3.10.0 |
| 285 | */ |
| 286 | export function transformOrFail<T, E, RD = never, RE = never>(options: { |
| 287 | readonly decode: (e: E, options: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, RD> |
| 288 | readonly encode: (t: T, options: SchemaAST.ParseOptions) => Effect.Effect<E, SchemaIssue.Issue, RE> |
| 289 | }): Transformation<T, E, RD, RE> { |
| 290 | return new Transformation( |
| 291 | SchemaGetter.transformOrFail(options.decode), |
| 292 | SchemaGetter.transformOrFail(options.encode) |
| 293 | ) |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Creates a `Transformation` from pure (sync, infallible) decode and encode |
no outgoing calls
no test coverage detected