johnagan / clean-webpack-plugin

A webpack plugin to remove your build folder(s) before building
MIT License
1.96k stars 136 forks source link

Bad type declaration in "clean-webpack-plugin.d.ts" #193

Open AxelEric opened 3 years ago

AxelEric commented 3 years ago

Issue description or question

clean-webpack-plugin.d.ts

import { Compiler, Stats, Compilation as CompilationType } from 'webpack';
declare type Compilation = CompilationType;
import { Compiler, Stats, Compilation } from 'webpack';
...//...
handleInitial(compilation: typeof Compilation): void;

Webpack Config

Not usefull

Environment

  System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7 CPU         960  @ 3.20GHz
    Memory: 11.54 GB / 15.99 GB
  Binaries:
    Node: 14.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - D:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    clean-webpack-plugin: ^3.0.0 => 3.0.0
    webpack: ^5.11.0 => 5.11.0

Keep smyling

AxelEric.

djcsdy commented 3 years ago

Note this is due to incompatibility with the type declarations provided by webpack 5.