@types/terser-webpack-plugin
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -28,4 +28,4 @@ // Type definitions for terser-webpack-plugin 2.2 | ||
condition: boolean | string | RegExp | ExtractCommentFn | object; | ||
filename?: string | FormatFn; | ||
banner?: boolean | string | FormatFn; | ||
filename?: string | FormatFn | undefined; | ||
banner?: boolean | string | FormatFn | undefined; | ||
} | ||
@@ -38,12 +38,12 @@ | ||
interface TerserPluginOptions { | ||
test?: string | RegExp | Array<string | RegExp>; | ||
include?: string | RegExp | Array<string | RegExp>; | ||
exclude?: string | RegExp | Array<string | RegExp>; | ||
chunkFilter?: (chunk: webpack.compilation.Chunk) => boolean; | ||
cache?: boolean | string; | ||
cacheKeys?: (defaultCacheKeys: any, file: any) => object; | ||
parallel?: boolean | number; | ||
sourceMap?: boolean; | ||
minify?: (file: any, sourceMap: any) => MinifyResult; | ||
terserOptions?: MinifyOptions; | ||
test?: string | RegExp | Array<string | RegExp> | undefined; | ||
include?: string | RegExp | Array<string | RegExp> | undefined; | ||
exclude?: string | RegExp | Array<string | RegExp> | undefined; | ||
chunkFilter?: ((chunk: webpack.compilation.Chunk) => boolean) | undefined; | ||
cache?: boolean | string | undefined; | ||
cacheKeys?: ((defaultCacheKeys: any, file: any) => object) | undefined; | ||
parallel?: boolean | number | undefined; | ||
sourceMap?: boolean | undefined; | ||
minify?: ((file: any, sourceMap: any) => MinifyResult) | undefined; | ||
terserOptions?: MinifyOptions | undefined; | ||
extractComments?: boolean | ||
@@ -53,5 +53,5 @@ | string | ||
| ExtractCommentFn | ||
| ExtractCommentOptions; | ||
warningsFilter?: (warning: string, source: string | undefined, file: string) => boolean; | ||
| ExtractCommentOptions | undefined; | ||
warningsFilter?: ((warning: string, source: string | undefined, file: string) => boolean) | undefined; | ||
} | ||
} |
{ | ||
"name": "@types/terser-webpack-plugin", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "TypeScript definitions for terser-webpack-plugin", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/terser-webpack-plugin", | ||
"license": "MIT", | ||
@@ -25,4 +26,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "9c57a4ac79791169f48ed121337f839cf8bd329343269937caf938e1c013869f", | ||
"typesPublisherContentHash": "9d4f1d4192ee5377118fadf046f5eaf334a2b06c63dd728734e716019d5683a2", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -9,5 +9,63 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/terser-webpack-plugin/v2. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/terser-webpack-plugin/v2/index.d.ts) | ||
````ts | ||
// Type definitions for terser-webpack-plugin 2.2 | ||
// Project: https://github.com/webpack-contrib/terser-webpack-plugin | ||
// Definitions by: Daniel Schopf <https://github.com/Danscho> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.7 | ||
import { Plugin } from 'webpack'; | ||
import { MinifyOptions } from 'terser'; | ||
import webpack = require('webpack'); | ||
export = TerserPlugin; | ||
declare class TerserPlugin extends Plugin { | ||
constructor(opts?: TerserPlugin.TerserPluginOptions); | ||
} | ||
declare namespace TerserPlugin { | ||
interface MinifyResult { | ||
error: any; | ||
map: any; | ||
code: any; | ||
warnings: any; | ||
extractedComments: any; | ||
} | ||
interface ExtractCommentOptions { | ||
condition: boolean | string | RegExp | ExtractCommentFn | object; | ||
filename?: string | FormatFn | undefined; | ||
banner?: boolean | string | FormatFn | undefined; | ||
} | ||
type ExtractCommentFn = (node: any, comment: any) => (boolean | object); | ||
type FormatFn = (input: string) => string; | ||
interface TerserPluginOptions { | ||
test?: string | RegExp | Array<string | RegExp> | undefined; | ||
include?: string | RegExp | Array<string | RegExp> | undefined; | ||
exclude?: string | RegExp | Array<string | RegExp> | undefined; | ||
chunkFilter?: ((chunk: webpack.compilation.Chunk) => boolean) | undefined; | ||
cache?: boolean | string | undefined; | ||
cacheKeys?: ((defaultCacheKeys: any, file: any) => object) | undefined; | ||
parallel?: boolean | number | undefined; | ||
sourceMap?: boolean | undefined; | ||
minify?: ((file: any, sourceMap: any) => MinifyResult) | undefined; | ||
terserOptions?: MinifyOptions | undefined; | ||
extractComments?: boolean | ||
| string | ||
| RegExp | ||
| ExtractCommentFn | ||
| ExtractCommentOptions | undefined; | ||
warningsFilter?: ((warning: string, source: string | undefined, file: string) => boolean) | undefined; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 25 Mar 2021 20:32:09 GMT | ||
* Last updated: Fri, 02 Jul 2021 21:32:17 GMT | ||
* Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack), [@types/terser](https://npmjs.com/package/@types/terser) | ||
@@ -14,0 +72,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6823
75