From: Dan Brown Date: Wed, 23 Jul 2025 13:49:41 +0000 (+0100) Subject: MD Editor: Last tests/check over plaintext use/switching X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/53f32849a9fceefab4bc2029c3b7790655184861 MD Editor: Last tests/check over plaintext use/switching --- 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 {