mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Sets TS version of the dependency and fixes lint issues
This commit is contained in:
parent
50646028ca
commit
2aa5b9547d
47
types/uglifyjs-webpack-plugin/index.d.ts
vendored
47
types/uglifyjs-webpack-plugin/index.d.ts
vendored
@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/webpack-contrib/uglifyjs-webpack-plugin
|
||||
// Definitions by: Rene Vajkay <https://github.com/vajkayrene>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Plugin } from 'webpack';
|
||||
|
||||
@ -12,31 +13,31 @@ declare class UglifyJsPlugin extends Plugin {
|
||||
}
|
||||
|
||||
declare namespace UglifyJsPlugin {
|
||||
export interface UglifyJsPluginOptions {
|
||||
test?: RegExp | RegExp[],
|
||||
include?: RegExp | RegExp[],
|
||||
exclude?: RegExp | RegExp[],
|
||||
cache?: boolean | string,
|
||||
parallel?: boolean | number,
|
||||
sourceMap?: boolean,
|
||||
uglifyOptions?: UglifyJsOptions,
|
||||
extractComments?: boolean | RegExp | ((node: object, comment: string) => boolean) | ExtractCommentsOptions,
|
||||
warningsFilter?: (source: string) => boolean
|
||||
interface UglifyJsPluginOptions {
|
||||
test?: RegExp | RegExp[];
|
||||
include?: RegExp | RegExp[];
|
||||
exclude?: RegExp | RegExp[];
|
||||
cache?: boolean | string;
|
||||
parallel?: boolean | number;
|
||||
sourceMap?: boolean;
|
||||
uglifyOptions?: UglifyJsOptions;
|
||||
extractComments?: boolean | RegExp | ((node: object, comment: string) => boolean) | ExtractCommentsOptions;
|
||||
warningsFilter?: (source: string) => boolean;
|
||||
}
|
||||
|
||||
export interface UglifyJsOptions {
|
||||
ie8?: boolean,
|
||||
ecma?: number,
|
||||
parse?: object,
|
||||
mangle?: boolean | object,
|
||||
output?: object,
|
||||
compress?: boolean | object,
|
||||
warnings?: boolean
|
||||
interface UglifyJsOptions {
|
||||
ie8?: boolean;
|
||||
ecma?: number;
|
||||
parse?: object;
|
||||
mangle?: boolean | object;
|
||||
output?: object;
|
||||
compress?: boolean | object;
|
||||
warnings?: boolean;
|
||||
}
|
||||
|
||||
export interface ExtractCommentsOptions {
|
||||
condition?: RegExp | ((node: object, comment: string) => boolean),
|
||||
filename?: string | ((originalFileName: string) => string),
|
||||
banner?: boolean | string | ((fileName: string) => string)
|
||||
interface ExtractCommentsOptions {
|
||||
condition?: RegExp | ((node: object, comment: string) => boolean);
|
||||
filename?: string | ((originalFileName: string) => string);
|
||||
banner?: boolean | string | ((fileName: string) => string);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,4 +15,4 @@ const compilerOptions = webpack({
|
||||
sourceMap: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user