optionalToOptional
constoptionalToOptional: <FA,FI,FR,TA,TI,TR>(from,to,options) =>PropertySignature<"?:",TA,never,"?:",FI,false,FR|TR>
Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:1127
Converts an optional property to another optional property through a transformation Option -> Option.
decode:noneas argument means the value is missing in the input.noneas return value means the value will be missing in the output.
encode:noneas argument means the value is missing in the input.noneas return value means the value will be missing in the output.
Type Parameters
Section titled “Type Parameters”FA
FI
FR
TA
TI
TR
Parameters
Section titled “Parameters”Schema<FA, FI, FR>
Schema<TA, TI, TR>
options
Section titled “options”decode
Section titled “decode”(o) => option_.Option<TI>
encode
Section titled “encode”(o) => option_.Option<FA>
Returns
Section titled “Returns”PropertySignature<"?:", TA, never, "?:", FI, false, FR | TR>
3.10.0