aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/i18next.d.ts19
-rw-r--r--FrontEnd/src/sw.ts2
-rw-r--r--FrontEnd/src/vite-env.d.ts1
3 files changed, 20 insertions, 2 deletions
diff --git a/FrontEnd/src/i18next.d.ts b/FrontEnd/src/i18next.d.ts
new file mode 100644
index 00000000..761b22f3
--- /dev/null
+++ b/FrontEnd/src/i18next.d.ts
@@ -0,0 +1,19 @@
+// import the original type declarations
+import "react-i18next";
+// import all namespaces (for the default language, only)
+import admin from "./locales/en/admin.json";
+import translation from "./locales/en/translation.json";
+
+// react-i18next versions higher than 11.11.0
+declare module "i18next" {
+ // and extend them!
+ interface CustomTypeOptions {
+ // custom namespace type if you changed it
+ defaultNS: "translation";
+ // custom resources type
+ resources: {
+ admin: typeof admin;
+ translation: typeof translation;
+ };
+ }
+}
diff --git a/FrontEnd/src/sw.ts b/FrontEnd/src/sw.ts
index 0130e345..a43ff9e5 100644
--- a/FrontEnd/src/sw.ts
+++ b/FrontEnd/src/sw.ts
@@ -1,5 +1,3 @@
-/// <reference no-default-lib="true"/>
-/// <reference lib="esnext" />
/// <reference lib="webworker" />
import { precacheAndRoute, matchPrecache } from "workbox-precaching";
diff --git a/FrontEnd/src/vite-env.d.ts b/FrontEnd/src/vite-env.d.ts
new file mode 100644
index 00000000..11f02fe2
--- /dev/null
+++ b/FrontEnd/src/vite-env.d.ts
@@ -0,0 +1 @@
+/// <reference types="vite/client" />