Skip to content

Commit

Permalink
Suggest installing types as dev dependencies (#163)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccouzens committed Apr 2, 2023
1 parent ceb3d16 commit ae98680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ npm install @koa/router
## Typescript Support

```sh
npm install @types/koa__router
npm install --save-dev @types/koa__router
```


Expand Down

0 comments on commit ae98680

Please sign in to comment.