# GroupedRowEnvelope (@salmonui/data)

> The GroupedRowEnvelope interface of @salmonui/data.

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

```ts
import type { GroupedRowEnvelope } 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 GroupedRowEnvelope<Row> {
    readonly kind: 'group';
    readonly key: Json;
    readonly columnId: ColumnId;
    readonly groupPath: readonly GroupPathSegment[];
    readonly count: number;
    readonly aggregates?: AggregateValues;
    readonly items?: readonly (Row | GroupedRowEnvelope<Row>)[];
    readonly pageInfo?: PageInfo;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'group';` |  |  |
| `key` | `readonly key: Json;` |  |  |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `groupPath` | `readonly groupPath: readonly GroupPathSegment[];` |  |  |
| `count` | `readonly count: number;` |  | Total descendants, not loaded descendants. |
| `aggregates` | `readonly aggregates?: AggregateValues;` | optional |  |
| `items` | `readonly items?: readonly (Row \| GroupedRowEnvelope<Row>)[];` | optional | Omitted for lazy groups. |
| `pageInfo` | `readonly pageInfo?: PageInfo;` | optional |  |
