Skip to content

Commit

Permalink
fix(plugin-vite): avoid TS5055 (#3711)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Sep 21, 2024
1 parent 5941a9a commit 420458b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/plugin/vite/forge-vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -7,8 +8,6 @@ declare global {
const MAIN_WINDOW_VITE_DEV_SERVER_URL: string;
const MAIN_WINDOW_VITE_NAME: string;

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`;
Expand Down

0 comments on commit 420458b

Please sign in to comment.