# AggregateDescriptor (@salmonui/data)

> The AggregateDescriptor interface of @salmonui/data.

Canonical: https://salmonui.dev/docs/reference/data/AggregateDescriptor

```ts
import type { AggregateDescriptor } from '@salmonui/data';
```

Entry index: https://salmonui.dev/docs/reference/data (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data.md).

## Reference

Kind: interface

```ts
interface AggregateDescriptor {
    readonly columnId: ColumnId;
    readonly type: AggregateType;
    readonly custom?: {
        custom(rows: readonly unknown[], column: unknown): unknown;
    }['custom'];
    readonly placement: readonly ('footer' | 'groupFooter' | 'groupCaption')[];
    readonly format?: string;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `type` | `readonly type: AggregateType;` |  |  |
| `custom` | `readonly custom?: {     custom(rows: readonly unknown[], column: unknown): unknown; }['custom'];` | optional | Local only; never serialized. The grid calls it with its compiled column (Data Grid engine `CompiledColumn`); declared as a method so that signature stays assignable both ways. |
| `placement` | `readonly placement: readonly ('footer' \| 'groupFooter' \| 'groupCaption')[];` |  |  |
| `format` | `readonly format?: string;` | optional |  |
