Skip to content

Commit ae98680

Browse files
authoredApr 2, 2023
Suggest installing types as dev dependencies (#163)
Typescript types are usually only required at build time, and not runtime. But the old instructions would end up with the types being around at run-time. From the [npm install documentation](https://docs.npmjs.com/cli/v6/commands/npm-install) > `npm install` saves any specified packages into `dependencies` by default.
1 parent ceb3d16 commit ae98680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ npm install @koa/router
5454
## Typescript Support
5555

5656
```sh
57-
npm install @types/koa__router
57+
npm install --save-dev @types/koa__router
5858
```
5959

6060

0 commit comments

Comments
 (0)
Please sign in to comment.