(schema: S, options?: SchemaAST.ParseOptions)
| 1881 | * @since 4.0.0 |
| 1882 | */ |
| 1883 | export function decodeUnknownSync<S extends ConstraintDecoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) { |
| 1884 | const parser = decodeUnknownEffect(schema, options) |
| 1885 | return (input: unknown, options?: SchemaAST.ParseOptions): S["Type"] => { |
| 1886 | return runSchemaErrorSync(parser(input, options)) |
| 1887 | } |
| 1888 | } |
| 1889 | /** |
| 1890 | * Decodes a typed input (the schema's `Encoded` type) against a schema |
| 1891 | * synchronously, returning the decoded value or throwing a {@link SchemaError} |
nothing calls this directly
no test coverage detected