aboutsummaryrefslogtreecommitdiffstats
path: root/src/@types/ferdium.types.ts
blob: 1120b73c854cceabd426684fdae954af7aef5e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
declare global {
  interface Window {
    ferdium: any;
  }

  // eslint-disable-next-line @typescript-eslint/no-namespace
  namespace NodeJS {
    interface ProcessEnv {
      GITHUB_AUTH_TOKEN: string;
      NODE_ENV: 'development' | 'production';
      FERDIUM_APPDATA_DIR?: string;
      PORTABLE_EXECUTABLE_FILE?: 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 type {};