I have this in my webpack.config.ts:
import * as webpack from 'webpack'
module.exports = (env, argv): webpack.Configuration => {
return {};
}
But it’s unclear to me what types I should use for env and argv.
I couldn’t find the answer in Webpack documentation, anywhere on the web or in my code editor suggestion, and I couldn’t make sense of the webpack typing files. The closer I have is the description in the Configuration Types of the webpack documentation, but it’s unclear what the exact type is.