# DataGridStateStorage (@salmonui/data/storage)

> The DataGridStateStorage interface of @salmonui/data/storage.

Canonical: https://salmonui.dev/docs/reference/data/storage/DataGridStateStorage

```ts
import type { DataGridStateStorage } from '@salmonui/data/storage';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/storage (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/storage.md).

## Reference

Kind: interface

```ts
interface DataGridStateStorage {
    load(gridId: string, signal?: AbortSignalLike): Promise<DataGridState | null>;
    save(gridId: string, state: DataGridState, expectedVersion?: string): Promise<SaveResult>;
    remove(gridId: string): Promise<void>;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `load` | `load(gridId: string, signal?: AbortSignalLike): Promise<DataGridState \| null>;` |  |  |
| `save` | `save(gridId: string, state: DataGridState, expectedVersion?: string): Promise<SaveResult>;` |  |  |
| `remove` | `remove(gridId: string): Promise<void>;` |  |  |
