# AddSheetUndoEntry

## Constructors

### constructor

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

*Defined in [hyperformula/src/UndoRedo.ts:264](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L264)*

**Parameters:**

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

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

## Properties

### sheetId

• **sheetId**: *number*

*Defined in [hyperformula/src/UndoRedo.ts:267](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L267)*

___

### sheetName

• **sheetName**: *string*

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

## Methods

### doRedo

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

*Defined in [hyperformula/src/UndoRedo.ts:276](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L276)*

**Parameters:**

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

**Returns:** *void*

___

### doUndo

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

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

**Parameters:**

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

**Returns:** *void*

___

### getReferencedOldDataVersions

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

*Defined in [hyperformula/src/UndoRedo.ts:43](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/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[]*