Skip to main content

Module: @lexical/history

Type Aliases

HistoryState

Ƭ HistoryState: Object

Type declaration

NameType
currentnull | HistoryStateEntry
redoStackHistoryStateEntry[]
undoStackHistoryStateEntry[]

Defined in

lexical-history/src/index.ts:52


HistoryStateEntry

Ƭ HistoryStateEntry: Object

Type declaration

NameType
editorLexicalEditor
editorStateEditorState
undoSelection?RangeSelection | NodeSelection | GridSelection | null

Defined in

lexical-history/src/index.ts:47

Functions

createEmptyHistoryState

createEmptyHistoryState(): HistoryState

Returns

HistoryState

Defined in

lexical-history/src/index.ts:500


registerHistory

registerHistory(editor, historyState, delay): () => void

Parameters

NameType
editorLexicalEditor
historyStateHistoryState
delaynumber

Returns

fn

▸ (): void

Returns

void

Defined in

lexical-history/src/index.ts:393