Type alias: EditorSubscription

Ƭ EditorSubscription: (activeEditor: LexicalEditor) => () => void

A function that subscribes to Lexical editor updates or events, and retursns an unsubscribe function.

Type declaration

▸ (activeEditor): () => void

Parameters
NameType
activeEditorLexicalEditor
Returns

fn

▸ (): void

Returns

void