Skip to content

Commit 8f05275

Browse files
committed
chore: adjust type cast
1 parent 8299778 commit 8f05275

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/node/worker_shikiResolveLang.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import { runAsWorker } from 'synckit'
33

44
async function resolveLang(lang: string) {
55
return (
6-
(bundledLanguages as Record<string, DynamicImportLanguageRegistration>)
6+
(
7+
bundledLanguages as Record<
8+
string,
9+
DynamicImportLanguageRegistration | undefined
10+
>
11+
)
712
[lang]?.()
813
.then((m) => m.default) || []
914
)

0 commit comments

Comments
 (0)