yarn add --dev @types/webpack
Add @type import('webpack').Configuration
to your webpack.config.js
.
/**
* @type import('webpack').Configuration
*/
module.exports = {
mode: "development",
entry: "./src/index.js",
output: {
filename: "bundle.js"
}
};
See Type Checking JavaScript Files · TypeScript
Thanks goes to these wonderful people (emoji key):
akameco 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco