From 163fd17056d9b71021428e81337b3a6080f7eaa6 Mon Sep 17 00:00:00 2001 From: Gerard Rovira Date: Thu, 30 Nov 2023 10:13:01 -0500 Subject: [PATCH] Add 2 missing flow exports (#5314) --- packages/lexical-list/flow/LexicalList.js.flow | 2 ++ packages/lexical/flow/Lexical.js.flow | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/packages/lexical-list/flow/LexicalList.js.flow b/packages/lexical-list/flow/LexicalList.js.flow index 3ee828ce269..875fe47a673 100644 --- a/packages/lexical-list/flow/LexicalList.js.flow +++ b/packages/lexical-list/flow/LexicalList.js.flow @@ -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; diff --git a/packages/lexical/flow/Lexical.js.flow b/packages/lexical/flow/Lexical.js.flow index 8cd19e6bdbb..d8c598cc046 100644 --- a/packages/lexical/flow/Lexical.js.flow +++ b/packages/lexical/flow/Lexical.js.flow @@ -913,6 +913,14 @@ declare export function $copyNode( offset: number, ): [ElementNode, ElementNode]; +/** + * LexicalNormalization + */ + +declare export function $normalizeSelection__EXPERIMENTAL( + selection: RangeSelection, +): RangeSelection; + /** * Serialization/Deserialization * */