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:53
HistoryStateEntry
Ƭ HistoryStateEntry: Object
Type declaration
| Name | Type |
|---|---|
editor | LexicalEditor |
editorState | EditorState |
undoSelection? | RangeSelection | NodeSelection | GridSelection | null |
Defined in
lexical-history/src/index.ts:48
Functions
createEmptyHistoryState
▸ createEmptyHistoryState(): HistoryState
Returns
Defined in
lexical-history/src/index.ts:487
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:380