aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.ts
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-06-26 01:26:19 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-25 23:26:19 +0000
commit465b5772763ccb8d4970d4c55e30a518abb7be3e (patch)
treee929e34910dbf6a3958cdc4de77dc1dcae93e7b0 /src/types.ts
parentchore: add more strict types in electron directory (#367) (diff)
downloadferdium-app-465b5772763ccb8d4970d4c55e30a518abb7be3e.tar.gz
ferdium-app-465b5772763ccb8d4970d4c55e30a518abb7be3e.tar.zst
ferdium-app-465b5772763ccb8d4970d4c55e30a518abb7be3e.zip
chore: moved tests to ./test directory (#366)
* chore: allow coverage to be generated from non-tested files
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 {};