From 436091253cebbd7e84d6df53da4e81de9dd32ea0 Mon Sep 17 00:00:00 2001 From: Simon Bct Date: Thu, 19 Dec 2024 15:50:24 +0100 Subject: [PATCH] Flow: Fix DOMConversionFn type --- packages/lexical/flow/Lexical.js.flow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lexical/flow/Lexical.js.flow b/packages/lexical/flow/Lexical.js.flow index 9ac60384aa7..f0c35d627cc 100644 --- a/packages/lexical/flow/Lexical.js.flow +++ b/packages/lexical/flow/Lexical.js.flow @@ -362,7 +362,7 @@ export type DOMConversion = { conversion: DOMConversionFn, priority: 0 | 1 | 2 | 3 | 4, }; -export type DOMConversionFn = (element: Node) => DOMConversionOutput; +export type DOMConversionFn = (element: Node) => DOMConversionOutput | null; export type DOMChildConversion = ( lexicalNode: LexicalNode, parentLexicalNode: ?LexicalNode | null,