Skip to content

Commit

Permalink
Merge pull request #16419 from karlhorky/patch-1
Browse files Browse the repository at this point in the history
Add NormalModuleReplacementPlugin argument type
  • Loading branch information
TheLarkInn committed Apr 12, 2023
2 parents a9ea0d9 + 1b20278 commit 3b8c9c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/NormalModuleReplacementPlugin.js
Expand Up @@ -8,7 +8,7 @@
const { join, dirname } = require("./util/fs");

/** @typedef {import("./Compiler")} Compiler */
/** @typedef {function(TODO): void} ModuleReplacer */
/** @typedef {function(import("./NormalModuleFactory").ResolveData): void} ModuleReplacer */

class NormalModuleReplacementPlugin {
/**
Expand Down
4 changes: 2 additions & 2 deletions types.d.ts
Expand Up @@ -7926,10 +7926,10 @@ declare class NormalModuleReplacementPlugin {
*/
constructor(
resourceRegExp: RegExp,
newResource: string | ((arg0?: any) => void)
newResource: string | ((arg0: ResolveData) => void)
);
resourceRegExp: RegExp;
newResource: string | ((arg0?: any) => void);
newResource: string | ((arg0: ResolveData) => void);

/**
* Apply the plugin
Expand Down

0 comments on commit 3b8c9c6

Please sign in to comment.