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:53


HistoryStateEntry

Ƭ HistoryStateEntry: Object

Type declaration

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

Defined in

lexical-history/src/index.ts:48

Functions

createEmptyHistoryState

createEmptyHistoryState(): HistoryState

Returns

HistoryState

Defined in

lexical-history/src/index.ts:485


registerHistory

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

Parameters

NameType
editorLexicalEditor
historyStateHistoryState
delaynumber

Returns

fn

▸ (): void

Returns

void

Defined in

lexical-history/src/index.ts:380