# SavedView (@salmonui/data/views)

> The SavedView interface of @salmonui/data/views.

Canonical: https://salmonui.dev/docs/reference/data/views/SavedView

```ts
import type { SavedView } from '@salmonui/data/views';
```

Also exported from `@salmonui/data`.

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

## Reference

Kind: interface

```ts
interface SavedView<State extends DataGridState = DataGridState> {
    readonly id: string;
    readonly name: string;
    readonly description?: string;
    readonly state: State;
    readonly createdAt: number;
    readonly updatedAt: number;
    readonly schemaVersion: number;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `name` | `readonly name: string;` |  |  |
| `description` | `readonly description?: string;` | optional |  |
| `state` | `readonly state: State;` |  |  |
| `createdAt` | `readonly createdAt: number;` |  | Epoch milliseconds. |
| `updatedAt` | `readonly updatedAt: number;` |  | Epoch milliseconds. |
| `schemaVersion` | `readonly schemaVersion: number;` |  | `SAVED_VIEW_SCHEMA_VERSION` the record was written with. |
