Skip to content

Commit

Permalink
[lexical] Bug Fix: add missing flow type for getNearestEditorFromDOMN…
Browse files Browse the repository at this point in the history
…ode (#7183)
  • Loading branch information
kirandash authored Feb 16, 2025
1 parent f505ffe commit 3b9ec81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lexical/flow/Lexical.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,9 @@ export type EventHandler = (event: Event, editor: LexicalEditor) => void;
declare export function $hasUpdateTag(tag: string): boolean;
declare export function $addUpdateTag(tag: string): void;
declare export function $onUpdate(updateFn: () => void): void;
declare export function getNearestEditorFromDOMNode(
node: Node | null,
): LexicalEditor | null;
declare export function $getNearestNodeFromDOMNode(
startingDOM: Node,
): LexicalNode | null;
Expand Down

0 comments on commit 3b9ec81

Please sign in to comment.