diff --git a/packages/plugin/vite/forge-vite-env.d.ts b/packages/plugin/vite/forge-vite-env.d.ts index 0a1b24ebf0..6fef99673e 100644 --- a/packages/plugin/vite/forge-vite-env.d.ts +++ b/packages/plugin/vite/forge-vite-env.d.ts @@ -1,4 +1,5 @@ export {}; // Make this a module +import type { VitePluginConfig } from './src/Config'; declare global { // This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Vite @@ -7,8 +8,6 @@ declare global { const MAIN_WINDOW_VITE_DEV_SERVER_URL: string; const MAIN_WINDOW_VITE_NAME: string; - type VitePluginConfig = ConstructorParameters[0]; - interface VitePluginRuntimeKeys { VITE_DEV_SERVER_URL: `${string}_VITE_DEV_SERVER_URL`; VITE_NAME: `${string}_VITE_NAME`;