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

    Function port

    • Declares a port of type T.

      inputs: { series: port<TimeSeries<Schema>>() },
      outputs: { mean: port<number>({ equals: (a, b) => a === b }) },

      Type Parameters

      • T

      Parameters

      • options: { defaultValue?: T; equals?: (a: T, b: T) => boolean } = {}

      Returns PortSpec<T>