( schema: S, options?: SchemaAST.ParseOptions )
| 909 | * @since 3.10.0 |
| 910 | */ |
| 911 | export function encodeUnknownSync<S extends Schema.ConstraintEncoder<unknown>>( |
| 912 | schema: S, |
| 913 | options?: SchemaAST.ParseOptions |
| 914 | ): (input: unknown, options?: SchemaAST.ParseOptions) => S["Encoded"] { |
| 915 | return CompilerRegistry.compilerAdaptersEnabled |
| 916 | ? makeSync(SchemaAST.flip(schema.ast), options) |
| 917 | : asSync(encodeUnknownEffect(schema, options)) |
| 918 | } |
| 919 | |
| 920 | /** |
| 921 | * Creates a synchronous encoder for input already typed as the schema's decoded |
nothing calls this directly
no test coverage detected