From fa7e04655103cb0e0576890c34572c9b17d7e7b3 Mon Sep 17 00:00:00 2001 From: wnhlee <2wheeh@gmail.com> Date: Thu, 18 Jan 2024 17:12:45 +0900 Subject: [PATCH] feat: make target to use generic --- packages/lexical/src/LexicalEditor.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/lexical/src/LexicalEditor.ts b/packages/lexical/src/LexicalEditor.ts index 375b0721457..4ce6f79a06d 100644 --- a/packages/lexical/src/LexicalEditor.ts +++ b/packages/lexical/src/LexicalEditor.ts @@ -171,7 +171,11 @@ export type LexicalNodeReplacement = { export type HTMLConfig = { export?: Map< Klass, - (editor: LexicalEditor, target: LexicalNode) => DOMExportOutput + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ( + editor: LexicalEditor, + target: InstanceType, + ) => DOMExportOutput >; import?: DOMConversionMap; };