Module: @lexical/history
Type Aliases
HistoryState
Ƭ HistoryState: Object
Type declaration
Name | Type |
---|---|
current | null | HistoryStateEntry |
redoStack | HistoryStateEntry [] |
undoStack | HistoryStateEntry [] |
Defined in
lexical-history/src/index.ts:52
HistoryStateEntry
Ƭ HistoryStateEntry: Object
Type declaration
Name | Type |
---|---|
editor | LexicalEditor |
editorState | EditorState |
undoSelection? | RangeSelection | NodeSelection | GridSelection | null |
Defined in
lexical-history/src/index.ts:47
Functions
createEmptyHistoryState
▸ createEmptyHistoryState(): HistoryState
Returns
Defined in
lexical-history/src/index.ts:501
registerHistory
▸ registerHistory(editor
, historyState
, delay
): () => void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
historyState | HistoryState |
delay | number |
Returns
fn
▸ (): void
Returns
void
Defined in
lexical-history/src/index.ts:393