How to use type definition from d.ts file as doctype in js file?

78 Views Asked by At

I want to use definition of webpack Configuration object in my webpack.config.js file to get IDE hints. Is it possible?

1

There are 1 best solutions below

0
grabantot On

The syntax for it is the following:

/**
 * @param {import('webpack').Configuration} config
 */
module.exports = function override(config) {
  ...