Skip to content

Commit

Permalink
Fix: Use already defined RegisteredNodes type (#7085)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovuki authored Jan 24, 2025
1 parent 63958a2 commit 81c9ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexical/src/LexicalEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export function createEditor(editorConfig?: CreateEditorArgs): LexicalEditor {
];
const {onError, html} = config;
const isEditable = config.editable !== undefined ? config.editable : true;
let registeredNodes: Map<string, RegisteredNode>;
let registeredNodes: RegisteredNodes;

if (editorConfig === undefined && activeEditor !== null) {
registeredNodes = activeEditor._nodes;
Expand Down

0 comments on commit 81c9ab6

Please sign in to comment.