10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
|
|
import { RowData } from '../helper';
|
||
|
|
export interface PercentOptions {
|
||
|
|
dimension: string;
|
||
|
|
field?: string;
|
||
|
|
method?: 'count' | 'sum';
|
||
|
|
groupBy?: string | string[];
|
||
|
|
as?: string;
|
||
|
|
}
|
||
|
|
export declare function percent(rows: RowData[], options: PercentOptions): RowData[];
|