---
title: "IStack"
---
# IStack

Defined in: [src/types/history.d.ts:24](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L24)

### length

`readonly` **length**: `number`

Defined in: [src/types/history.d.ts:25](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L25)

### clear()

**clear**(): `void`

Defined in: [src/types/history.d.ts:26](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L26)

#### Returns

`void`

***

### push()

**push**(`command`): `void`

Defined in: [src/types/history.d.ts:27](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L27)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `command` | [`ICommand`](./types.ICommand.html) |

#### Returns

`void`

***

### replace()

**replace**(`command`): `void`

Defined in: [src/types/history.d.ts:28](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L28)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `command` | [`ICommand`](./types.ICommand.html) |

#### Returns

`void`

***

### current()

**current**(): [`CanUndef`](../modules/types.html#canundef)\<[`ICommand`](./types.ICommand.html)\>

Defined in: [src/types/history.d.ts:29](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L29)

#### Returns

[`CanUndef`](../modules/types.html#canundef)\<[`ICommand`](./types.ICommand.html)\>

***

### undo()

**undo**(): `boolean`

Defined in: [src/types/history.d.ts:30](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L30)

#### Returns

`boolean`

***

### redo()

**redo**(): `boolean`

Defined in: [src/types/history.d.ts:31](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L31)

#### Returns

`boolean`

***

### canUndo()

**canUndo**(): `boolean`

Defined in: [src/types/history.d.ts:32](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L32)

#### Returns

`boolean`

***

### canRedo()

**canRedo**(): `boolean`

Defined in: [src/types/history.d.ts:33](https://github.com/xdan/jodit/blob/main/src/types/history.d.ts#L33)

#### Returns

`boolean`
