(schema: S)
| 16133 | * @since 3.10.0 |
| 16134 | */ |
| 16135 | export function OptionFromUndefinedOr<S extends Constraint>(schema: S): OptionFromUndefinedOr<S> { |
| 16136 | return UndefinedOr(schema).pipe(decodeTo( |
| 16137 | Option(toType(schema)), |
| 16138 | SchemaTransformation.optionFromUndefinedOr() |
| 16139 | )) |
| 16140 | } |
| 16141 | /** |
| 16142 | * Type-level representation returned by {@link OptionFromNullishOr}. |
| 16143 | * |
nothing calls this directly
no test coverage detected