(schema: S)
| 9806 | * @since 4.0.0 |
| 9807 | */ |
| 9808 | export function OptionFromOptionalKey<S extends Constraint>(schema: S): OptionFromOptionalKey<S> { |
| 9809 | return optionalKey(schema).pipe(decodeTo( |
| 9810 | Option(toType(schema)), |
| 9811 | SchemaTransformation.optionFromOptionalKey() |
| 9812 | )) |
| 9813 | } |
| 9814 | |
| 9815 | /** |
| 9816 | * Type-level representation returned by {@link OptionFromOptional}. |
nothing calls this directly
no test coverage detected