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

> The ChildScope interface of @salmonui/data-grid/engine.

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

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

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

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: interface

```ts
interface ChildScope {
    readonly childField: string;
    readonly value: unknown;
    readonly getRowId?: (row: never, index: number) => RowId;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `childField` | `readonly childField: string;` |  |  |
| `value` | `readonly value: unknown;` |  |  |
| `getRowId` | `readonly getRowId?: (row: never, index: number) => RowId;` | optional | Required for array sources that are written to. |
