@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
6 lines (5 loc) • 493 B
TypeScript
import type { Column } from "../../../types.js";
import type { PivotModel } from "../../use-client-data-source.js";
import type { AggregationFn, Aggregator } from "@1771technologies/lytenyte-shared";
import type { Grid } from "@1771technologies/lytenyte-core";
export declare function usePivotAggFunction<Spec extends Grid.GridSpec>(pivotColumns: Column<Spec>[] | null, model: PivotModel<Spec> | undefined, aggs?: Record<string, Aggregator<Spec["data"]>>): AggregationFn<Spec["data"]> | null;