(schema: S, options?: SchemaAST.ParseOptions)
| 1602 | * @since 4.0.0 |
| 1603 | */ |
| 1604 | export function decodeUnknownExit<S extends ConstraintDecoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) { |
| 1605 | const parser = SchemaParser.decodeUnknownExit(schema, options) |
| 1606 | return (input: unknown, options?: SchemaAST.ParseOptions): Exit_.Exit<S["Type"], SchemaError> => { |
| 1607 | return fromIssueExit(parser(input, options)) |
| 1608 | } |
| 1609 | } |
| 1610 | /** |
| 1611 | * Decodes a typed input (the schema's `Encoded` type) against a schema |
| 1612 | * synchronously, returning an `Exit` that is either a `Success` with the decoded |
nothing calls this directly
no test coverage detected