pond-ts API Reference (core)
    Preparing search index...

    Class LiveAggregation<S, Out>

    Type Parameters

    Index

    Constructors

    Properties

    name: string
    schema: Out

    Accessors

    Methods

    • Type Parameters

      • const Targets extends string

      Parameters

      • spec: {
            [K in string]:
                | "sum"
                | "count"
                | "min"
                | "max"
                | ((acc: number, value: number) => number)
        }

      Returns LiveView<
          readonly [
              Out[0],
              ReplaceSmoothedColumn<ValueColumnsForSchema<Out>, Targets>,
          ],
      >