diff --git a/src/node/worker_shikiResolveLang.ts b/src/node/worker_shikiResolveLang.ts index 524a5ad591c1..22a2c2287bab 100644 --- a/src/node/worker_shikiResolveLang.ts +++ b/src/node/worker_shikiResolveLang.ts @@ -3,7 +3,12 @@ import { runAsWorker } from 'synckit' async function resolveLang(lang: string) { return ( - (bundledLanguages as Record) + ( + bundledLanguages as Record< + string, + DynamicImportLanguageRegistration | undefined + > + ) [lang]?.() .then((m) => m.default) || [] )