Skip to content

Commit

Permalink
rename incorrectly named type interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Feb 19, 2024
1 parent 50d94ba commit fd6a748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/lib/cli/src/automigrate/fixes/vite-config-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getFrameworkPackageName } from '../helpers/mainConfigFile';
import { frameworkToRenderer } from '../../helpers';
import { frameworkPackages } from '@storybook/core-common';

interface Webpack5RunOptions {
interface ViteConfigFileRunOptions {
plugins: string[];
existed: boolean;
}
Expand Down Expand Up @@ -108,4 +108,4 @@ export const viteConfigFile = {
This change was necessary to support newer versions of Vite.
`;
},
} satisfies Fix<Webpack5RunOptions>;
} satisfies Fix<ViteConfigFileRunOptions>;
4 changes: 2 additions & 2 deletions code/lib/cli/src/automigrate/fixes/vite4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Fix } from '../types';

const logger = console;

interface Webpack5RunOptions {
interface Vite4RunOptions {
viteVersion: string | null;
}

Expand Down Expand Up @@ -40,4 +40,4 @@ export const vite4 = {
await packageManager.addDependencies({ installAsDevDependencies: true }, deps);
}
},
} satisfies Fix<Webpack5RunOptions>;
} satisfies Fix<Vite4RunOptions>;

0 comments on commit fd6a748

Please sign in to comment.