# AddSheetUndoEntry

## Constructors

### constructor 

\+ **new AddSheetUndoEntry**(`sheetName`: string, `sheetId`: number): *[AddSheetUndoEntry](addsheetundoentry.md)*

*Defined in [hyperformula/src/UndoRedo.ts:263](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L263)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetName` | string |
`sheetId` | number |

**Returns:** *[AddSheetUndoEntry](addsheetundoentry.md)*

## Properties

### sheetId

• **sheetId**: *number*

*Defined in [hyperformula/src/UndoRedo.ts:266](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L266)*

___

### sheetName

• **sheetName**: *string*

*Defined in [hyperformula/src/UndoRedo.ts:265](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L265)*

## Methods

### doRedo 

▸ **doRedo**(`undoRedo`: [UndoRedo](undoredo.md)): *void*

*Defined in [hyperformula/src/UndoRedo.ts:275](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L275)*

**Parameters:**

Name | Type |
------ | ------ |
`undoRedo` | [UndoRedo](undoredo.md) |

**Returns:** *void*

___

### doUndo 

▸ **doUndo**(`undoRedo`: [UndoRedo](undoredo.md)): *void*

*Defined in [hyperformula/src/UndoRedo.ts:271](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L271)*

**Parameters:**

Name | Type |
------ | ------ |
`undoRedo` | [UndoRedo](undoredo.md) |

**Returns:** *void*

___

### getReferencedOldDataVersions 

▸ **getReferencedOldDataVersions**(): *number[]*

*Defined in [hyperformula/src/UndoRedo.ts:42](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L42)*

Returns LazilyTransformingAstService version keys referenced by this entry's oldData.
Default implementation returns empty — override in entries that store oldData.

**Returns:** *number[]*