From 149949f8511bf9afac765c357bddf27239b10905 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 25 Nov 2024 16:34:11 +0100 Subject: [PATCH] [lexical-selection] Bug Fix: Wrong selection type in $setBlocksType (#6867) --- packages/lexical-selection/flow/LexicalSelection.js.flow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lexical-selection/flow/LexicalSelection.js.flow b/packages/lexical-selection/flow/LexicalSelection.js.flow index d1d68d66376..bc70e777b53 100644 --- a/packages/lexical-selection/flow/LexicalSelection.js.flow +++ b/packages/lexical-selection/flow/LexicalSelection.js.flow @@ -51,7 +51,7 @@ declare export function $wrapNodes( wrappingElement?: ElementNode, ): void; declare export function $setBlocksType( - selection: RangeSelection, + selection: BaseSelection | null, createElement: () => ElementNode, ): void; declare export function $isAtNodeEnd(point: Point): boolean;