effect-io-ai

Package: effect
Module: SchemaAST

Represents a single step in an Encoding chain.

Details

A link pairs a target AST with a Transformation or Middleware that converts values between the current node and the target.

Links are composed into a non-empty array (Encoding) attached to AST nodes that have a different encoded representation.

See

Signature

declare class Link { constructor(
    to: AST,
    transformation:
      | SchemaTransformation.Transformation<any, any, any, any>
      | SchemaTransformation.Middleware<any, any, any, any, any, any>
  ) }

Source

Since v4.0.0