chore: migrate config to TypeScript

Updated config utility modules to .ts, added types to them, and updated
imports depending on those.
This commit is contained in:
jakob.scheid committed 2026-10-25 02:36:16 +02:00
1 parent b1dc260d47
commit 72b7d313ed
4 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ limitations under the License.
-->
<script setup>
import { LANGUAGE_PATH } from './config/featureSettings.js';
import { LANGUAGE_PATH } from './config/featureSettings';
import AppFooter from './features/footer/components/AppFooter.vue';
import AppNavbar from './features/nav/components/AppNavbar.vue';
import { useSettings } from './features/settings/composables/useSettings.js';
+1 -1
View File
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
export const getAssetsUrl = function getAssetsUrl() {
export const getAssetsUrl = function getAssetsUrl(): string {
return new URL(
`${import.meta.env.VITE_ASSETS_BUILD_ID}/`,
import.meta.env.VITE_ASSETS_BASE_URL,
File renamed without changes.
@@ -15,7 +15,7 @@ limitations under the License.
*/
import LanguageSwitchButton from '../LanguageSwitchButton.vue';
import { LANGUAGE_PATH } from '@/config/featureSettings.js';
import { LANGUAGE_PATH } from '@/config/featureSettings';
import { useSettings } from '@/features/settings/composables/useSettings.js';
import { mountComponent } from '@/test-utils/mountComponent.js';
import { describe, expect, test } from 'vitest';