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

    Type Alias TimeSeriesInput<S>

    type TimeSeriesInput<S extends SeriesSchema> = {
        name: string;
        rows: ReadonlyArray<RowForSchema<S>>;
        schema: S;
        sort?: boolean;
    }

    Type Parameters

    Index

    Properties

    Properties

    name: string
    rows: ReadonlyArray<RowForSchema<S>>
    schema: S
    sort?: boolean

    Sort rows by key on construction. Off by default — pond requires rows in non-decreasing key order and throws otherwise. Set true when ingesting unsorted data (messy CSVs, merged sources) rather than pre-sorting yourself. The sort is stable, so rows with equal keys keep their input order. (This is what TimeSeries.fromEvents does unconditionally; sort brings the same convenience to the row constructor.)