Skip to content

Commit

Permalink
Add optional selection argument to $getHtmlContent flow type (#6803)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivanisetti authored Nov 6, 2024
1 parent a4e7016 commit 8eae296
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/lexical-clipboard/flow/LexicalClipboard.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ declare export function $insertDataTransferForRichText(
editor: LexicalEditor,
): void;

declare export function $getHtmlContent(editor: LexicalEditor): string | null;
declare export function $getHtmlContent(
editor: LexicalEditor,
selection?: BaseSelection,
): string | null;

declare export function $getLexicalContent(
editor: LexicalEditor,
): string | null;
Expand Down

0 comments on commit 8eae296

Please sign in to comment.