enforce strict typescript

This commit is contained in:
2022-03-01 02:00:01 +01:00
parent f185ccee03
commit 728ad56b33
7 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
// @ts-ignore
import { registerAll } from '$locales'
registerAll()
init({ initialLocale: getLocaleFromNavigator(), fallbackLocale: 'en' })
init({ initialLocale: getLocaleFromNavigator() ?? undefined, fallbackLocale: 'en' })
</script>
<script lang="ts">