From afd84d136ab0a132049d69cbf4dd114ea3839b22 Mon Sep 17 00:00:00 2001 From: Dejumo Date: Tue, 2 Sep 2025 18:54:00 +0100 Subject: [PATCH] Recommend installing `@types/*` as dev dependencies --- src/content/learn/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/typescript.md b/src/content/learn/typescript.md index e6ff4ff46..5ed72a1f5 100644 --- a/src/content/learn/typescript.md +++ b/src/content/learn/typescript.md @@ -32,7 +32,7 @@ All [production-grade React frameworks](/learn/start-a-new-react-project#full-st To install the latest version of React's type definitions: -npm install @types/react @types/react-dom +npm install --save-dev @types/react @types/react-dom The following compiler options need to be set in your `tsconfig.json`: