chore: adjust type cast

pull/4329/head
Divyansh Singh 3 weeks ago
parent 829977876a
commit 8f052753de

@ -3,7 +3,12 @@ import { runAsWorker } from 'synckit'
async function resolveLang(lang: string) {
return (
(bundledLanguages as Record<string, DynamicImportLanguageRegistration>)
(
bundledLanguages as Record<
string,
DynamicImportLanguageRegistration | undefined
>
)
[lang]?.()
.then((m) => m.default) || []
)

Loading…
Cancel
Save