Package: effect
Module: Schema
Constructs an SchemaAST.Link that describes how a value of type T encodes to and decodes from a To schema.
Used when building low-level AST transformations that bridge two schema types.
Signature
declare const link: <T>() => <To extends Constraint>(encodeTo: To, transformation: { readonly decode: SchemaGetter.Getter<T, NoInfer<To["Type"]>>; readonly encode: SchemaGetter.Getter<NoInfer<To["Type"]>, T>; }) => SchemaAST.Link
Since v4.0.0