chore: adjust type cast

pull/4329/head
Divyansh Singh 11 months ago
parent 829977876a
commit 8f052753de

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

Loading…
Cancel
Save