From 65ccf13c5e25622c4ab4924275048676ef4d37a2 Mon Sep 17 00:00:00 2001 From: Olaf Sulich Date: Thu, 2 Jan 2025 09:54:04 +0100 Subject: [PATCH] fix: update updateDOM method signature to use 'this' type for better type safety --- src/script/components/RichTextEditor/nodes/EmojiNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/components/RichTextEditor/nodes/EmojiNode.ts b/src/script/components/RichTextEditor/nodes/EmojiNode.ts index 06d79aa45ba..4e3c0005315 100644 --- a/src/script/components/RichTextEditor/nodes/EmojiNode.ts +++ b/src/script/components/RichTextEditor/nodes/EmojiNode.ts @@ -39,7 +39,7 @@ export class EmojiNode extends TextNode { return dom; } - updateDOM(prevNode: TextNode, dom: HTMLElement, config: EditorConfig): boolean { + updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean { const inner = dom.firstChild; if (inner === null) { return true;