From 53f32849a9fceefab4bc2029c3b7790655184861 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 23 Jul 2025 14:49:41 +0100 Subject: [PATCH] MD Editor: Last tests/check over plaintext use/switching --- resources/js/markdown/index.mts | 1 - resources/js/services/util.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/js/markdown/index.mts b/resources/js/markdown/index.mts index 7538c1972..0a6e974b7 100644 --- a/resources/js/markdown/index.mts +++ b/resources/js/markdown/index.mts @@ -62,7 +62,6 @@ export async function init(config: MarkdownEditorConfig): Promise any>(func: T, waitMs: number, immediate: boolean): T { let timeout: number|null = null; return function debouncedWrapper(this: any, ...args: any[]) { const context: any = this; @@ -19,7 +19,7 @@ export function debounce(func: Function, waitMs: number, immediate: boolean): Fu } timeout = window.setTimeout(later, waitMs); if (callNow) func.apply(context, args); - }; + } as T; } function isDetailsElement(element: HTMLElement): element is HTMLDetailsElement {