File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 77// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
88// TypeScript Version: 3.9
99
10- import { Plugin } from 'webpack' ;
10+ import { Compiler } from 'webpack' ;
1111
1212export = WebpackNotifierPlugin ;
1313
14- declare const WebpackNotifierPlugin : { new ( options ?: WebpackNotifierPlugin . Options ) : Plugin } ;
14+ declare class WebpackNotifierPlugin {
15+ constructor ( options ?: WebpackNotifierPlugin . Options ) ;
16+ apply ( compiler : Compiler ) : void ;
17+ }
1518
1619declare namespace WebpackNotifierPlugin {
1720 interface Options {
Original file line number Diff line number Diff line change 4343 "@types/jest" : " ^26.0.15" ,
4444 "@types/node-notifier" : " ^8.0.1" ,
4545 "@types/semver" : " ^7.3.8" ,
46- "@types/webpack" : " ^ 4.41.31" ,
46+ "@types/webpack" : " > 4.41.31" ,
4747 "eslint" : " ^7.14.0" ,
4848 "eslint-config-airbnb-base" : " ^14.2.1" ,
4949 "husky" : " ^4.3.0" ,
6161 "webpack-latest" : " npm:webpack@latest"
6262 },
6363 "peerDependencies" : {
64- "@types/webpack" : " ^ 4.41.31"
64+ "@types/webpack" : " > 4.41.31"
6565 },
6666 "peerDependenciesMeta" : {
6767 "@types/webpack" : {
Original file line number Diff line number Diff line change 1- import { Plugin } from 'webpack' ;
21import WebpackNotifierPlugin = require( '../' ) ;
32
43const optionsArray : WebpackNotifierPlugin . Options [ ] = [
@@ -15,4 +14,4 @@ const optionsArray: WebpackNotifierPlugin.Options[] = [
1514 } ,
1615] ;
1716
18- const plugins : Plugin [ ] = optionsArray . map ( options => new WebpackNotifierPlugin ( options ) ) ;
17+ const plugins : WebpackNotifierPlugin [ ] = optionsArray . map ( options => new WebpackNotifierPlugin ( options ) ) ;
You can’t perform that action at this time.
0 commit comments