Skip to content

Commit

Permalink
Add optional selection argument to $getHtmlContent flow type
Browse files Browse the repository at this point in the history
TSIA -- the implementation has an optional selection argument that defaults to `$getSelection()`
  • Loading branch information
rajivanisetti authored Nov 6, 2024
1 parent a4e7016 commit 43f85bb
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 43f85bb

Please sign in to comment.