Skip to content

Commit 420458b

Browse files
authored
fix(plugin-vite): avoid TS5055 (#3711)
1 parent 5941a9a commit 420458b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/plugin/vite/forge-vite-env.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export {}; // Make this a module
2+
import type { VitePluginConfig } from './src/Config';
23

34
declare global {
45
// This allows TypeScript to pick up the magic constants that's auto-generated by Forge's Vite
@@ -7,8 +8,6 @@ declare global {
78
const MAIN_WINDOW_VITE_DEV_SERVER_URL: string;
89
const MAIN_WINDOW_VITE_NAME: string;
910

10-
type VitePluginConfig = ConstructorParameters<typeof import('@electron-forge/plugin-vite').VitePlugin>[0];
11-
1211
interface VitePluginRuntimeKeys {
1312
VITE_DEV_SERVER_URL: `${string}_VITE_DEV_SERVER_URL`;
1413
VITE_NAME: `${string}_VITE_NAME`;

0 commit comments

Comments
 (0)