10 lines
308 B
TypeScript
10 lines
308 B
TypeScript
import { RowData } from '../helper';
|
|
import * as statistics from '../util/statistics';
|
|
export interface PivotOptions {
|
|
field: string;
|
|
value: string;
|
|
groupBy?: string | string[];
|
|
op?: keyof typeof statistics;
|
|
}
|
|
export declare function pivot(rows: RowData[], options: PivotOptions): RowData[];
|