We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c37c10 commit 2d39181Copy full SHA for 2d39181
packages/lexical/src/LexicalEditor.ts
@@ -169,7 +169,11 @@ export type LexicalNodeReplacement = {
169
export type HTMLConfig = {
170
export?: Map<
171
Klass<LexicalNode>,
172
- (editor: LexicalEditor, target: LexicalNode) => DOMExportOutput
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
173
+ <T extends {new (...args: any): any}>(
174
+ editor: LexicalEditor,
175
+ target: InstanceType<T>,
176
+ ) => DOMExportOutput
177
>;
178
import?: DOMConversionMap;
179
};
0 commit comments