# UndoStorageOptions

## Content

# Type Alias: UndoStorageOptions

```ts
type UndoStorageOptions = object;
```

Undo storage options.

## Properties

### maxLevels?

```ts
optional maxLevels: number;
```

Max undo levels.

***

### skipCommands?

```ts
optional skipCommands: string[];
```

The names of the undo commands to skip.
Available built-in command names are: "Open", "Close", "FrameIndex", "Zoom", "Rotation", "Flip", "StartAnimation", "StopAnimation".
Note that the "Open"/"Close" and "StartAnimation"/"StopAnimation" commands are paired - if one command is skipped, the other command will also be skipped.

#### Example

```javascript
const viewer = new GcImageViewer(selector, {
  undo: { skipCommands: ["Open", "Zoom"] }
});
```
