webpack-contrib/image-minimizer-webpack-plugin

types loader.d.ts throw error A constructor cannot have a 'this' parameter.

tianyingchun opened this issue · 3 comments

Bug report

types/loader.d.ts throw ts issue

image

Actual Behavior

Expected Behavior

No ts error throw

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

"typescript": "^4.8.2"

Can you provide how we can reproduce it? Because I can't, thank you

Hm, I see, typescript generates these lines, sounds like a bug in typescript...

Found the problem and found workaround