@pond-ts/process API Reference
    Preparing search index...

    Class PlanBuilder<From>

    Type Parameters

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Adds a node under a caller-chosen slot name.

      The name is required rather than derived, because it is the stable identity — deriving sma2 from a counter would renumber the moment a node is inserted above it, which is the property slots exist to provide.

      Parameters

      • slot: string
      • op: string
      • params: Readonly<Record<string, ParamValue>> | undefined
      • inputs: readonly InputRef[]

      Returns NodeHandle

      if the slot is already taken.

    • Surfaces a node under the caller's own name.

      Takes a handle, because a selector's only remaining job is to point at a node — what comes back is whatever that node produces.

      Parameters

      • name: string
      • node: NodeHandle
      • Optionaloptions: { output?: string }

      Returns this

      if the name is already used.