(schema: S, options?: SchemaAST.ParseOptions)
| 2042 | * @since 4.0.0 |
| 2043 | */ |
| 2044 | export function encodeUnknownExit<S extends ConstraintEncoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) { |
| 2045 | const parser = SchemaParser.encodeUnknownExit(schema, options) |
| 2046 | return (input: unknown, options?: SchemaAST.ParseOptions): Exit_.Exit<S["Encoded"], SchemaError> => { |
| 2047 | return fromIssueExit(parser(input, options)) |
| 2048 | } |
| 2049 | } |
| 2050 | |
| 2051 | /** |
| 2052 | * Encodes a typed input (the schema's `Type`) against a schema synchronously, |
nothing calls this directly
no test coverage detected