From 6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9 Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Sun, 26 Jun 2022 23:59:32 +0200 Subject: chore: turned all auth containers into typescript (#375) --- src/@types/ferdium.types.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/@types/ferdium.types.ts (limited to 'src/@types/ferdium.types.ts') 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 @@ +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-54-g00ecf