(schema: S, options?: SchemaAST.ParseOptions)
| 1905 | * @since 4.0.0 |
| 1906 | */ |
| 1907 | export function decodeUnknownSync<S extends ConstraintDecoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) { |
| 1908 | const parser = decodeUnknownEffect(schema, options) |
| 1909 | return (input: unknown, options?: SchemaAST.ParseOptions): S["Type"] => { |
| 1910 | return runSchemaErrorSync(parser(input, options)) |
| 1911 | } |
| 1912 | } |
| 1913 | |
| 1914 | /** |
| 1915 | * Decodes a typed input (the schema's `Encoded` type) against a schema |
nothing calls this directly
no test coverage detected