(schema: S, options?: SchemaAST.ParseOptions)
| 1533 | * @since 4.0.0 |
| 1534 | */ |
| 1535 | export function decodeUnknownEffect<S extends Constraint>(schema: S, options?: SchemaAST.ParseOptions) { |
| 1536 | const parser = SchemaParser.decodeUnknownEffect(schema, options) |
| 1537 | return ( |
| 1538 | input: unknown, |
| 1539 | options?: SchemaAST.ParseOptions |
| 1540 | ): Effect.Effect<S["Type"], SchemaError, S["DecodingServices"]> => { |
| 1541 | return fromIssueEffect(parser(input, options)) |
| 1542 | } |
| 1543 | } |
| 1544 | /** |
| 1545 | * Decodes a typed input (the schema's `Encoded` type) against a schema, |
| 1546 | * returning an `Effect` that succeeds with the decoded value or fails with a |
no test coverage detected