We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8299778 commit 8f05275Copy full SHA for 8f05275
src/node/worker_shikiResolveLang.ts
@@ -3,7 +3,12 @@ import { runAsWorker } from 'synckit'
3
4
async function resolveLang(lang: string) {
5
return (
6
- (bundledLanguages as Record<string, DynamicImportLanguageRegistration>)
+ (
7
+ bundledLanguages as Record<
8
+ string,
9
+ DynamicImportLanguageRegistration | undefined
10
+ >
11
+ )
12
[lang]?.()
13
.then((m) => m.default) || []
14
)
0 commit comments