(value: Value)
| 7254 | * @since 3.10.0 |
| 7255 | */ |
| 7256 | export function OptionFromNullOr<Value extends Schema.Any>(value: Value): OptionFromNullOr<Value> { |
| 7257 | return transform(NullOr(value), OptionFromSelf(typeSchema(asSchema(value))), { |
| 7258 | strict: true, |
| 7259 | decode: (i) => option_.fromNullable(i), |
| 7260 | encode: (a) => option_.getOrNull(a) |
| 7261 | }) |
| 7262 | } |
| 7263 | |
| 7264 | /** |
| 7265 | * @category api interface |
nothing calls this directly
no test coverage detected