Skip to content

Commit

Permalink
feat: make target to use generic
Browse files Browse the repository at this point in the history
  • Loading branch information
2wheeh committed May 22, 2024
1 parent 53f6f1d commit fa7e046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/lexical/src/LexicalEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ export type LexicalNodeReplacement = {
export type HTMLConfig = {
export?: Map<
Klass<LexicalNode>,
(editor: LexicalEditor, target: LexicalNode) => DOMExportOutput
// eslint-disable-next-line @typescript-eslint/no-explicit-any
<T extends {new (...args: any): any}>(
editor: LexicalEditor,
target: InstanceType<T>,
) => DOMExportOutput
>;
import?: DOMConversionMap;
};
Expand Down

0 comments on commit fa7e046

Please sign in to comment.