Add NormalModuleReplacementPlugin argument type

This commit is contained in:
Karl Horky 2022-10-26 13:02:18 +02:00 committed by GitHub
parent 9fcaa24357
commit f757c2153b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
types.d.ts vendored
View File

@ -7890,10 +7890,10 @@ declare class NormalModuleReplacementPlugin {
*/ */
constructor( constructor(
resourceRegExp: RegExp, resourceRegExp: RegExp,
newResource: string | ((arg0?: any) => void) newResource: string | ((resource?: { request: string }) => void)
); );
resourceRegExp: RegExp; resourceRegExp: RegExp;
newResource: string | ((arg0?: any) => void); newResource: string | ((resource?: { request: string }) => void);
/** /**
* Apply the plugin * Apply the plugin