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

> The EditSnapshot interface of @salmonui/data-grid/engine: edit.getSnapshot().

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

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

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

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 EditSnapshot {
    readonly activeRowId: RowId | null;
    readonly activeCell: CellRef | null;
    readonly addedRows: readonly RowId[];
    readonly deletedRows: readonly RowId[];
    readonly changedRows: readonly RowId[];
    readonly dirtyCellCount: number;
    readonly cellErrors: Readonly<Record<string, readonly string[]>>;
    readonly rowErrors: Readonly<Record<RowId, readonly string[]>>;
    readonly status: EditStatus;
}
```

`edit.getSnapshot()`.

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `activeRowId` | `readonly activeRowId: RowId \| null;` |  |  |
| `activeCell` | `readonly activeCell: CellRef \| null;` |  |  |
| `addedRows` | `readonly addedRows: readonly RowId[];` |  |  |
| `deletedRows` | `readonly deletedRows: readonly RowId[];` |  |  |
| `changedRows` | `readonly changedRows: readonly RowId[];` |  |  |
| `dirtyCellCount` | `readonly dirtyCellCount: number;` |  |  |
| `cellErrors` | `readonly cellErrors: Readonly<Record<string, readonly string[]>>;` |  |  |
| `rowErrors` | `readonly rowErrors: Readonly<Record<RowId, readonly string[]>>;` |  |  |
| `status` | `readonly status: EditStatus;` |  |  |
