mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Feature/update webpack bundle analyzer to match Plugin interface (#36836)
* corrected formatting * corrected import
This commit is contained in:
committed by
Andrew Branch
parent
0f1ab4b0ea
commit
802faae451
8
types/webpack-bundle-analyzer/index.d.ts
vendored
8
types/webpack-bundle-analyzer/index.d.ts
vendored
@@ -4,7 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as webpack from 'webpack';
|
||||
import { Plugin, Compiler, Stats } from 'webpack';
|
||||
|
||||
export namespace BundleAnalyzerPlugin {
|
||||
type ExcludeAssetsPatternFn = (assetName: string) => boolean;
|
||||
@@ -69,7 +69,7 @@ export namespace BundleAnalyzerPlugin {
|
||||
* Options for stats.toJson() method.
|
||||
* For example you can exclude sources of your modules from stats file with "source: false" option.
|
||||
*/
|
||||
statsOptions?: null | webpack.Stats.ToJsonOptionsObject;
|
||||
statsOptions?: null | Stats.ToJsonOptionsObject;
|
||||
|
||||
/**
|
||||
* Default: `null`.
|
||||
@@ -89,6 +89,8 @@ export namespace BundleAnalyzerPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
export class BundleAnalyzerPlugin extends webpack.Plugin {
|
||||
export class BundleAnalyzerPlugin extends Plugin {
|
||||
constructor(options?: BundleAnalyzerPlugin.Options);
|
||||
|
||||
apply(compiler: Compiler): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user