diff options
Diffstat (limited to 'src/@types/ferdium.types.ts')
-rw-r--r-- | src/@types/ferdium.types.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/@types/ferdium.types.ts b/src/@types/ferdium.types.ts new file mode 100644 index 000000000..0747f8e14 --- /dev/null +++ b/src/@types/ferdium.types.ts | |||
@@ -0,0 +1,22 @@ | |||
1 | declare global { | ||
2 | interface Window { | ||
3 | ferdium: any; | ||
4 | } | ||
5 | |||
6 | namespace NodeJS { | ||
7 | interface ProcessEnv { | ||
8 | GITHUB_AUTH_TOKEN: string; | ||
9 | NODE_ENV: 'development' | 'production'; | ||
10 | FERDIUM_APPDATA_DIR?: string; | ||
11 | PORTABLE_EXECUTABLE_DIR?: string; | ||
12 | ELECTRON_IS_DEV?: string; | ||
13 | APPDATA?: string; | ||
14 | } | ||
15 | } | ||
16 | } | ||
17 | |||
18 | /** | ||
19 | * Workaround to make TS recognize this file as a module. | ||
20 | * https://fettblog.eu/typescript-augmenting-global-lib-dom/ | ||
21 | */ | ||
22 | export { }; | ||