From e73be147da71f2a420904d42792c95d7c6546a31 Mon Sep 17 00:00:00 2001 From: Steven Hall Date: Wed, 17 Apr 2024 13:07:03 +0100 Subject: [PATCH] Fix type --- src/components/DocumentView/CodeBlock/highlight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DocumentView/CodeBlock/highlight.ts b/src/components/DocumentView/CodeBlock/highlight.ts index 7c1a6ff15..fe46edda5 100644 --- a/src/components/DocumentView/CodeBlock/highlight.ts +++ b/src/components/DocumentView/CodeBlock/highlight.ts @@ -329,7 +329,7 @@ const loadHighlighter = singleton(async () => { const loadLanguagesMutex = asyncMutexFunction(); async function loadHighlighterLanguage( highlighter: HighlighterCore, - lang: keyof typeof bundledLanguages, + lang: string, ) { await loadLanguagesMutex.runBlocking(async () => { if (highlighter.getLoadedLanguages().includes(lang)) {