diff --git a/packages/lexical/src/LexicalUtils.ts b/packages/lexical/src/LexicalUtils.ts index a4a3af63118..dc3baa6fd4f 100644 --- a/packages/lexical/src/LexicalUtils.ts +++ b/packages/lexical/src/LexicalUtils.ts @@ -1148,7 +1148,9 @@ export function setMutatedNode( mutatedNodesByType.set(nodeKey, isMove ? 'updated' : mutation); } } - +/** + * @deprecated Use {@link LexicalEditor.registerMutationListener} with `skipInitialization: false` instead. + */ export function $nodesOfType(klass: Klass): Array { const klassType = klass.getType(); const editorState = getActiveEditorState();