aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
new file mode 100644
index 000000000..db8711cd3
--- /dev/null
+++ b/src/types.ts
@@ -0,0 +1,22 @@
1declare 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 */
22export {};