mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 08:35:10 +00:00
Fix type
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user