( schema: S, options?: SchemaAST.ParseOptions )
| 554 | * @since 3.10.0 |
| 555 | */ |
| 556 | export function decodeUnknownSync<S extends Schema.ConstraintDecoder<unknown>>( |
| 557 | schema: S, |
| 558 | options?: SchemaAST.ParseOptions |
| 559 | ): (input: unknown, options?: SchemaAST.ParseOptions) => S["Type"] { |
| 560 | return CompilerRegistry.compilerAdaptersEnabled |
| 561 | ? makeSync(schema.ast, options) |
| 562 | : asSync(decodeUnknownEffect(schema, options)) |
| 563 | } |
| 564 | |
| 565 | /** |
| 566 | * Creates a synchronous decoder for input already typed as the schema's `Encoded` |
nothing calls this directly
no test coverage detected