# CustomAggregate (@salmonui/data-grid/engine)

> The CustomAggregate type of @salmonui/data-grid/engine: A custom aggregate (type: 'custom'): receives the group's (or the grid's) rows.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/CustomAggregate

```ts
import type { CustomAggregate } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid/engine/aggregates`.

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

## Reference

Kind: type

```ts
type CustomAggregate = (rows: readonly unknown[], column: CompiledColumn<unknown>) => unknown;
```

A custom aggregate (`type: 'custom'`): receives the group's (or the grid's) rows.
