(u: unknown)
| 2203 | export function encodeUnknownSync<S extends ConstraintEncoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) { |
| 2204 | const parser = encodeUnknownEffect(schema, options) |
| 2205 | return (input: unknown, options?: SchemaAST.ParseOptions): S["Encoded"] => { |
| 2206 | return runSchemaErrorSync(parser(input, options) as Effect.Effect<S["Encoded"], SchemaError>) |
| 2207 | } |
| 2208 | } |
| 2209 | /** |
| 2210 | * Encodes a typed input (the schema's `Type`) against a schema synchronously, |
no outgoing calls
no test coverage detected
searching dependent graphs…