(schema: S)
| 16686 | * @since 4.0.0 |
| 16687 | */ |
| 16688 | export function OptionFromOptionalKey<S extends Constraint>(schema: S): OptionFromOptionalKey<S> { |
| 16689 | return optionalKey(schema).pipe(decodeTo( |
| 16690 | Option(toType(schema)), |
| 16691 | SchemaTransformation.optionFromOptionalKey() |
| 16692 | )) |
| 16693 | } |
| 16694 | /** |
| 16695 | * Type-level representation returned by {@link OptionFromOptional}. |
| 16696 | * |
nothing calls this directly
no test coverage detected