Skip to main content

Module: lexical-history/src

Type Aliases

HistoryState

Ƭ HistoryState: Object

Type declaration

NameType
currentnull | HistoryStateEntry
redoStackHistoryStateEntry[]
undoStackHistoryStateEntry[]

Defined in

lexical-history/src/index.ts:59


HistoryStateEntry

Ƭ HistoryStateEntry: Object

Type declaration

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

Defined in

lexical-history/src/index.ts:54

Functions

createEmptyHistoryState

createEmptyHistoryState(): HistoryState

Returns

HistoryState

Defined in

lexical-history/src/index.ts:492


registerHistory

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

Parameters

NameType
editorLexicalEditor
historyStateHistoryState
delaynumber

Returns

fn

▸ (): void

Returns

void

Defined in

lexical-history/src/index.ts:387