From 72e4a88a3dd7c8d810212ee2649b916cda3fce95 Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Mon, 21 Nov 2016 15:05:17 +0900 Subject: [PATCH] Webpack plugins are Tapable plugins --- webpack/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack/index.d.ts b/webpack/index.d.ts index 468634d825..c10a4b2234 100644 --- a/webpack/index.d.ts +++ b/webpack/index.d.ts @@ -4,8 +4,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +/// import * as UglifyJS from 'uglify-js'; +import * as tapable from 'tapable'; declare namespace webpack { interface Configuration { @@ -345,7 +347,7 @@ declare namespace webpack { } type Rule = LoaderRule | UseRule | RulesRule | OneOfRule; - interface Plugin { } + interface Plugin extends tapable.Plugin {} interface Webpack { (config: Configuration, callback?: compiler.CompilerCallback): compiler.Compiler;