(schema: S, options?: SchemaAST.ParseOptions)
| 1620 | * @since 4.0.0 |
| 1621 | */ |
| 1622 | export function decodeUnknownExit<S extends ConstraintDecoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) { |
| 1623 | const parser = SchemaParser.decodeUnknownExit(schema, options) |
| 1624 | return (input: unknown, options?: SchemaAST.ParseOptions): Exit_.Exit<S["Type"], SchemaError> => { |
| 1625 | return fromIssueExit(parser(input, options)) |
| 1626 | } |
| 1627 | } |
| 1628 | |
| 1629 | function fromIssueExit<A>(exit: Exit_.Exit<A, SchemaIssue.Issue>): Exit_.Exit<A, SchemaError> { |
| 1630 | return Exit_.isSuccess(exit) |
nothing calls this directly
no test coverage detected