diff --git a/src/env.d.ts b/src/env.d.ts
index 9d0d3e6da51f..2ba343a78811 100644
--- a/src/env.d.ts
+++ b/src/env.d.ts
@@ -19,6 +19,8 @@
* along with this program. If not, see .
*/
+import { translate, translatePlural } from '@nextcloud/l10n'
+
declare global {
// @nextcloud/webpack-vue-config build globals
const appName: string
@@ -28,6 +30,12 @@ declare global {
* Build constant to divide build for web app and desktop client
*/
const IS_DESKTOP: false
+
+ let __webpack_nonce__: ReturnType
+ let __webpack_public_path__: string
+
+ const t: typeof translate
+ const n: typeof translatePlural
}
export {}
diff --git a/src/types/vendor/l10n.d.ts b/src/types/vendor/l10n.d.ts
deleted file mode 100644
index f61a9dd4e276..000000000000
--- a/src/types/vendor/l10n.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// TODO re-declare functions from upstream library
-// import { translate, translatePlural } from '@nextcloud/l10n/dist/translation.d.ts'
-
-declare function t(app: string, text: string, vars?: { [key: string]: string }, number?: number, options?: any): string;
-declare function n(app: string, textSingular: string, textPlural: string, number: number, vars?: { [key: string]: string }, options?: any): string;
diff --git a/src/types/vendor/vue-material-design-icons.d.ts b/src/types/vendor/vue-material-design-icons.d.ts
index eb268b8a46ea..a112b87fecf8 100644
--- a/src/types/vendor/vue-material-design-icons.d.ts
+++ b/src/types/vendor/vue-material-design-icons.d.ts
@@ -1,2 +1 @@
-declare module 'vue-material-design-icons/VideoOff.vue'
-declare module 'vue-material-design-icons/MenuDown.vue'
+declare module 'vue-material-design-icons/*.vue'