# TreeRowEnvelope (@salmonui/data)

> The TreeRowEnvelope interface of @salmonui/data.

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

```ts
import type { TreeRowEnvelope } 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 TreeRowEnvelope<Row> {
    readonly kind: 'tree';
    readonly row: Row;
    readonly depth: number;
    readonly parentId: RowId | null;
    readonly hasChildren: boolean;
    readonly childCount?: number;
    readonly children?: readonly TreeRowEnvelope<Row>[];
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'tree';` |  |  |
| `row` | `readonly row: Row;` |  |  |
| `depth` | `readonly depth: number;` |  |  |
| `parentId` | `readonly parentId: RowId \| null;` |  |  |
| `hasChildren` | `readonly hasChildren: boolean;` |  |  |
| `childCount` | `readonly childCount?: number;` | optional |  |
| `children` | `readonly children?: readonly TreeRowEnvelope<Row>[];` | optional |  |
