Table of contents
class HistoryManager<R extends UnknownRecord> {}

Constructor

Constructs a new instance of the HistoryManager class

Parameters
NameDescription

opts

{
  annotateError?: (error: unknown) => void
  store: Store<R>
}

Properties

bail

bail: () => this

bailToMark

bailToMark: (id: string) => this

batch

batch: (fn: () => void, opts?: TLHistoryBatchOptions) => this

dispose

readonly dispose: () => void

mark

mark: (id?: string) => string

redo

redo: () => this

squashToMark

squashToMark: (id: string) => this

undo

undo: () => this

Methods

clear()

clear(): void

getNumRedos()

getNumRedos(): number

getNumUndos()

getNumUndos(): number

HandleSnapsMat