# AddSheetUndoEntry

## Constructors

### constructor 

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

*Defined in [src/UndoRedo.ts:260](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L260)*

**Parameters:**

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

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

## Properties

### sheetId

• **sheetId**: *number*

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

___

### sheetName

• **sheetName**: *string*

*Defined in [src/UndoRedo.ts:262](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L262)*

## Methods

### doRedo 

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

*Defined in [src/UndoRedo.ts:272](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L272)*

**Parameters:**

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

**Returns:** *void*

___

### doUndo 

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

*Defined in [src/UndoRedo.ts:268](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L268)*

**Parameters:**

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

**Returns:** *void*

___

### getReferencedOldDataVersions 

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

*Defined in [src/UndoRedo.ts:43](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L43)*

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

**Returns:** *number[]*