From b5c09eee730ac16389133f86376b3dbce97263d3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 26 May 2025 15:46:02 +0300 Subject: [PATCH] refactor(client): missing type errors for syntax highlight --- apps/client/src/services/syntax_highlight.ts | 6 +++--- packages/highlightjs/src/index.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/client/src/services/syntax_highlight.ts b/apps/client/src/services/syntax_highlight.ts index f6b7f8ff7..6780f8130 100644 --- a/apps/client/src/services/syntax_highlight.ts +++ b/apps/client/src/services/syntax_highlight.ts @@ -1,4 +1,4 @@ -import { ensureMimeTypes, highlight, highlightAuto, loadTheme, Themes } from "@triliumnext/highlightjs"; +import { ensureMimeTypes, highlight, highlightAuto, loadTheme, Themes, type AutoHighlightResult, type HighlightResult, type Theme } from "@triliumnext/highlightjs"; import mime_types from "./mime_types.js"; import options from "./options.js"; import toast from "./toast.js"; @@ -57,7 +57,7 @@ export async function applySingleBlockSyntaxHighlight($codeBlock: JQuery