(options: {
readonly decode: (input: Option.Option<E>) => Option.Option<T>
readonly encode: (input: Option.Option<T>) => Option.Option<E>
})
| 386 | * @since 4.0.0 |
| 387 | */ |
| 388 | export function transformOptional<T, E>(options: { |
| 389 | readonly decode: (input: Option.Option<E>) => Option.Option<T> |
| 390 | readonly encode: (input: Option.Option<T>) => Option.Option<E> |
| 391 | }): Transformation<T, E> { |
| 392 | return new Transformation( |
| 393 | SchemaGetter.transformOptional(options.decode), |
| 394 | SchemaGetter.transformOptional(options.encode) |
| 395 | ) |
| 396 | } |
| 397 | |
| 398 | /** |
| 399 | * Transforms strings by trimming whitespace on decode. |
no outgoing calls
no test coverage detected