aboutsummaryrefslogtreecommitdiffstats
path: root/@types/index.d.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-22 19:48:16 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-22 19:48:16 +0530
commit2ac8beeeb0664b9c1e166cacddd0d0e8bea9b317 (patch)
treeedcfd3fce49e8c8a19ccf63606e8dce01fbcc90b /@types/index.d.ts
parent5.6.3-nightly.10 [skip ci] (diff)
downloadferdium-app-2ac8beeeb0664b9c1e166cacddd0d0e8bea9b317.tar.gz
ferdium-app-2ac8beeeb0664b9c1e166cacddd0d0e8bea9b317.tar.zst
ferdium-app-2ac8beeeb0664b9c1e166cacddd0d0e8bea9b317.zip
fix: fix some ts errors
Diffstat (limited to '@types/index.d.ts')
-rw-r--r--@types/index.d.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/@types/index.d.ts b/@types/index.d.ts
index e21f88cee..4bfdb28fc 100644
--- a/@types/index.d.ts
+++ b/@types/index.d.ts
@@ -2,8 +2,18 @@ declare global {
2 interface Window { 2 interface Window {
3 ferdi: any; 3 ferdi: any;
4 } 4 }
5}
6 5
6 namespace NodeJS {
7 interface ProcessEnv {
8 GITHUB_AUTH_TOKEN: string;
9 NODE_ENV: 'development' | 'production';
10 FERDI_APPDATA_DIR?: string;
11 PORTABLE_EXECUTABLE_DIR?: string;
12 ELECTRON_IS_DEV?: string;
13 APPDATA?: string;
14 }
15 }
16}
7/** 17/**
8 * Workaround to make TS recognize this file as a module. 18 * Workaround to make TS recognize this file as a module.
9 * https://fettblog.eu/typescript-augmenting-global-lib-dom/ 19 * https://fettblog.eu/typescript-augmenting-global-lib-dom/