UNPKG

backsplash-app

Version:
45 lines (38 loc) 1.54 kB
export {}; // Make this a module declare global { // This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Vite // plugin that tells the Electron app where to look for the Vite-bundled app code (depending on // whether you're running in development or production). const MAIN_WINDOW_VITE_DEV_SERVER_URL: string; const MAIN_WINDOW_VITE_NAME: string; // Custom global constants defined in Vite config const __DARWIN__: boolean; const __WIN32__: boolean; const __LINUX__: boolean; const __APP_NAME__: string; const __APP_VERSION__: string; const __DEV__: boolean; const __SENTRY_DSN__: string; namespace NodeJS { interface Process { // Used for hot reload after preload scripts. viteDevServers: Record<string, import("vite").ViteDevServer>; } } type VitePluginConfig = ConstructorParameters<typeof import("@electron-forge/plugin-vite").VitePlugin>[0]; interface VitePluginRuntimeKeys { VITE_DEV_SERVER_URL: `${string}_VITE_DEV_SERVER_URL`; VITE_NAME: `${string}_VITE_NAME`; VITE_SERVER_BASE_URL: `${string}_VITE_SERVER_BASE_URL`; VITE_SENTRY_DSN: `${string}_VITE_SENTRY_DSN`; VITE_PUBLIC_POSTHOG_KEY: `${string}_VITE_PUBLIC_POSTHOG_KEY`; VITE_PUBLIC_POSTHOG_HOST: `${string}_VITE_PUBLIC_POSTHOG_HOST`; } } declare module "vite" { interface ConfigEnv<K extends keyof VitePluginConfig = keyof VitePluginConfig> { root: string; forgeConfig: VitePluginConfig; forgeConfigSelf: VitePluginConfig[K][number]; } }