Function
OptionFromNullishOr
(
schema: S,
options?: {
onNoneEncoding: null | undefined
}
)
Source from the content-addressed store, hash-verified
| 9773 | * @since 3.10.0 |
| 9774 | */ |
| 9775 | export function OptionFromNullishOr<S extends Constraint>( |
| 9776 | schema: S, |
| 9777 | options?: { |
| 9778 | onNoneEncoding: null | undefined |
| 9779 | } |
| 9780 | ): OptionFromNullishOr<S> { |
| 9781 | return NullishOr(schema).pipe(decodeTo( |
| 9782 | Option(toType(schema)), |
| 9783 | SchemaTransformation.optionFromNullishOr(options) |
| 9784 | )) |
| 9785 | } |
| 9786 | |
| 9787 | /** |
| 9788 | * Type-level representation returned by {@link OptionFromOptionalKey}. |
Callers
nothing calls this directly
Tested by
no test coverage detected