Package: effect
Module: SchemaAST
Represents a PropertySignature -> PropertySignature transformation
The semantic of decode is:
none() represents the absence of the key/value pairsome(value) represents the presence of the key/value pairThe semantic of encode is:
none() you don’t want to output the key/value pairsome(value) you want to output the key/value pairSignature
declare class PropertySignatureTransformation { constructor(
readonly from: PropertyKey,
readonly to: PropertyKey,
readonly decode: (o: Option.Option<any>) => Option.Option<any>,
readonly encode: (o: Option.Option<any>) => Option.Option<any>
) }
Since v3.10.0