API reference: @salmonui/pivot-table/engine
PivotGroupingtype
import type { PivotGrouping } from '@salmonui/pivot-table/engine';Also exported from @salmonui/pivot-table.
type PivotGrouping = {
readonly kind: 'number';
readonly start?: number;
readonly end?: number;
readonly interval: number;
} | {
readonly kind: 'date';
readonly parts: readonly PivotDatePart[];
readonly start?: string;
readonly end?: string;
} | {
readonly kind: 'custom';
readonly groups: readonly {
readonly caption: string;
readonly members: readonly Json[];
}[];
};