(value: Value)
| 7303 | * @since 3.10.0 |
| 7304 | */ |
| 7305 | export function OptionFromUndefinedOr<Value extends Schema.Any>(value: Value): OptionFromUndefinedOr<Value> { |
| 7306 | return transform(UndefinedOr(value), OptionFromSelf(typeSchema(asSchema(value))), { |
| 7307 | strict: true, |
| 7308 | decode: (i) => option_.fromNullable(i), |
| 7309 | encode: (a) => option_.getOrUndefined(a) |
| 7310 | }) |
| 7311 | } |
| 7312 | |
| 7313 | /** |
| 7314 | * Transforms strings into an Option type, effectively filtering out empty or |
nothing calls this directly
no test coverage detected