Options
All
  • Public
  • Public/Protected
  • All
Menu

Class History<T>

Type parameters

  • T

Hierarchy

  • History

Index

Constructors

constructor

  • new History(startingState: T): History

Properties

currentState

currentState: T

redoHistory

redoHistory: HistoryStack<T>

undoHistory

undoHistory: HistoryStack<T>

Methods

recordStateChange

  • recordStateChange(newState: T): void

redo

  • redo(): T

undo

  • undo(): T

Generated using TypeDoc