(schema: S, options?: SchemaAST.ParseOptions)
| 1504 | * @since 4.0.0 |
| 1505 | */ |
| 1506 | export function decodeUnknownEffect<S extends Constraint>(schema: S, options?: SchemaAST.ParseOptions) { |
| 1507 | const parser = SchemaParser.decodeUnknownEffect(schema, options) |
| 1508 | return ( |
| 1509 | input: unknown, |
| 1510 | options?: SchemaAST.ParseOptions |
| 1511 | ): Effect.Effect<S["Type"], SchemaError, S["DecodingServices"]> => { |
| 1512 | return fromIssueEffect(parser(input, options)) |
| 1513 | } |
| 1514 | } |
| 1515 | |
| 1516 | function fromIssueEffect<A, R>( |
| 1517 | self: Effect.Effect<A, SchemaIssue.Issue, R> |
no test coverage detected