mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Webpack plugins are Tapable plugins
This commit is contained in:
committed by
Diogo Franco (Kovensky)
parent
cfb9cf227e
commit
72e4a88a3d
Vendored
+3
-1
@@ -4,8 +4,10 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="uglify-js" />
|
||||
/// <reference types="tapable" />
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user