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

> The EditPreview interface of @salmonui/data-grid/engine: edit.getBatchPreview(): non-mutating diff for a save-review UI.

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

```ts
import type { EditPreview } 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 EditPreview {
    readonly cells: readonly EditPreviewCell[];
    readonly addedRowIds: readonly RowId[];
    readonly deletedRowIds: readonly RowId[];
    readonly dirtyCellCount: number;
    readonly invalidCellCount: number;
}
```

`edit.getBatchPreview()`: non-mutating diff for a save-review UI.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `cells` | `readonly cells: readonly EditPreviewCell[];` |  |  |
| `addedRowIds` | `readonly addedRowIds: readonly RowId[];` |  |  |
| `deletedRowIds` | `readonly deletedRowIds: readonly RowId[];` |  |  |
| `dirtyCellCount` | `readonly dirtyCellCount: number;` |  |  |
| `invalidCellCount` | `readonly invalidCellCount: number;` |  |  |
