Skip to content

Commit

Permalink
fix: RsbuildInstance generics type error
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Dec 25, 2023
1 parent c784d79 commit 1d79769
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shared/src/types/rsbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export type CreateRsbuildOptions = {
rsbuildConfig?: RsbuildConfig;
};

export type RsbuildInstance<P extends RsbuildProvider = RsbuildProvider> = {
export type RsbuildInstance<
P extends RsbuildProvider | RsbuildProvider<'webpack'> = RsbuildProvider,
> = {
context: Context;

addPlugins: PluginStore['addPlugins'];
Expand Down

0 comments on commit 1d79769

Please sign in to comment.