Skip to content

Commit

Permalink
fix(lexical): avoid implicit any type by explicitly setting variable …
Browse files Browse the repository at this point in the history
…type (#5889)
  • Loading branch information
jason89521 authored Apr 16, 2024
1 parent c697259 commit 650d93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lexical/src/LexicalEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ export function createEditor(editorConfig?: CreateEditorArgs): LexicalEditor {
registeredNodes = new Map();
for (let i = 0; i < nodes.length; i++) {
let klass = nodes[i];
let replace = null;
let replaceWithKlass = null;
let replace: RegisteredNode['replace'] = null;
let replaceWithKlass: RegisteredNode['replaceWithKlass'] = null;

if (typeof klass !== 'function') {
const options = klass;
Expand Down

0 comments on commit 650d93c

Please sign in to comment.