Skip to content

Commit

Permalink
Use full ResolveData type
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Nov 10, 2022
1 parent 1e342b4 commit 1b20278
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({ request: string }): void} ModuleReplacer */
/** @typedef {function(import("./NormalModuleFactory").ResolveData): void} ModuleReplacer */

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

/**
* Apply the plugin
Expand Down

0 comments on commit 1b20278

Please sign in to comment.