Skip to content

Commit

Permalink
Add 2 missing flow exports (facebook#5314)
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx authored Nov 30, 2023
1 parent 2730895 commit 163fd17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lexical-list/flow/LexicalList.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ declare export class ListItemNode extends ElementNode {
canInsertAfter(node: LexicalNode): boolean;
canReplaceWith(replacement: LexicalNode): boolean;
canMergeWith(node: LexicalNode): boolean;
getValue(): number;
setValue(value: number): void;
getChecked(): boolean | void;
setChecked(boolean): this;
toggleChecked(): void;
Expand Down
8 changes: 8 additions & 0 deletions packages/lexical/flow/Lexical.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,14 @@ declare export function $copyNode(
offset: number,
): [ElementNode, ElementNode];

/**
* LexicalNormalization
*/

declare export function $normalizeSelection__EXPERIMENTAL(
selection: RangeSelection,
): RangeSelection;

/**
* Serialization/Deserialization
* */
Expand Down

0 comments on commit 163fd17

Please sign in to comment.