From 8f052753deee4645e527797d7ca9b664e3c5d34e Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:42:48 +0530 Subject: [PATCH] chore: adjust type cast --- src/node/worker_shikiResolveLang.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) || [] )