Fix memory leak with EditorContext (#1767)

* Fix memory leak with EditorContext

* Fix flow

* Fix prettier
This commit is contained in:
Dominic Gannaway
2022-04-21 19:55:37 +01:00
committed by GitHub
parent 779762d777
commit 8ef3f1cb61
39 changed files with 96 additions and 138 deletions

View File

@ -12,7 +12,7 @@ declare export class OverflowNode extends ElementNode {
static getType(): string;
static clone(node: OverflowNode): OverflowNode;
constructor(key?: NodeKey): void;
createDOM<EditorContext>(config: EditorConfig<EditorContext>): HTMLElement;
createDOM(config: EditorConfig): HTMLElement;
updateDOM(prevNode: OverflowNode, dom: HTMLElement): boolean;
insertNewAfter(selection: RangeSelection): null | LexicalNode;
excludeFromCopy(): boolean;