From 465b5772763ccb8d4970d4c55e30a518abb7be3e Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Sun, 26 Jun 2022 01:26:19 +0200 Subject: chore: moved tests to ./test directory (#366) * chore: allow coverage to be generated from non-tested files --- src/types.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/types.ts (limited to 'src/types.ts') 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 @@ +declare global { + interface Window { + ferdium: any; + } + + namespace NodeJS { + interface ProcessEnv { + GITHUB_AUTH_TOKEN: string; + NODE_ENV: 'development' | 'production'; + FERDIUM_APPDATA_DIR?: string; + PORTABLE_EXECUTABLE_DIR?: string; + ELECTRON_IS_DEV?: string; + APPDATA?: string; + } + } +} + +/** + * Workaround to make TS recognize this file as a module. + * https://fettblog.eu/typescript-augmenting-global-lib-dom/ + */ +export {}; -- cgit v1.2.3-70-g09d2