Skip to content

Commit 7d2a2cf

Browse files
simon04montogeek
authored andcommitted
doc(configuration): Extend TypeScript (#2628)
- Add link to DefinitelyTyped - Add @types/webpack-dev-server
1 parent b6a120b commit 7d2a2cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/configuration/configuration-languages.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ webpack accepts configuration files written in multiple programming and data lan
1616

1717
## TypeScript
1818

19-
To write the webpack configuration in [TypeScript](http://www.typescriptlang.org/), you would first install the necessary dependencies:
19+
To write the webpack configuration in [TypeScript](http://www.typescriptlang.org/), you would first install the necessary dependencies, i.e., TypeScript and the relevant type definitions from the [DefinitelyTyped](https://definitelytyped.org/) project:
2020

2121
``` bash
2222
npm install --save-dev typescript ts-node @types/node @types/webpack
23+
# and, if using webpack-dev-server
24+
npm install --save-dev @types/webpack-dev-server
2325
```
2426

2527
and then proceed to write your configuration:

0 commit comments

Comments
 (0)