diff --git a/types/terser-webpack-plugin/index.d.ts b/types/terser-webpack-plugin/index.d.ts index 5d1afa1a52..0e37679b2b 100644 --- a/types/terser-webpack-plugin/index.d.ts +++ b/types/terser-webpack-plugin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for terser-webpack-plugin 1.2 +// Type definitions for terser-webpack-plugin 2.2 // Project: https://github.com/webpack-contrib/terser-webpack-plugin // Definitions by: Daniel Schopf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -49,6 +49,6 @@ declare namespace TerserPlugin { | RegExp | ExtractCommentFn | ExtractCommentOptions; - warningsFilter?: (warning: any, source: any) => boolean; + warningsFilter?: (warning: string, source: string | undefined, file: string) => boolean; } } diff --git a/types/terser-webpack-plugin/package.json b/types/terser-webpack-plugin/package.json index fa05b4d87e..b0cc21b998 100644 --- a/types/terser-webpack-plugin/package.json +++ b/types/terser-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "terser": "^3.16.1" + "terser": "^4.3.9" } }