From ae986800027cc873c8c3cb5f0fab460603980e48 Mon Sep 17 00:00:00 2001 From: Chris Couzens Date: Sun, 2 Apr 2023 02:20:09 +0100 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d11075..474420c 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ npm install @koa/router ## Typescript Support ```sh -npm install @types/koa__router +npm install --save-dev @types/koa__router ```