From ece07f60128ce255855d17217759f4010738dfee Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 19 May 2021 14:56:46 -0500 Subject: [PATCH] doc(typescript.md) Mention incremental type checking (#25268) * doc(typescript.md) Mention incremental type checking * Apply suggestions from code review Co-authored-by: Tobias Koppers Co-authored-by: Tobias Koppers --- docs/basic-features/typescript.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/basic-features/typescript.md b/docs/basic-features/typescript.md index a19908372c8ce..2bd00ec2718b2 100644 --- a/docs/basic-features/typescript.md +++ b/docs/basic-features/typescript.md @@ -127,3 +127,9 @@ export default MyApp Next.js automatically supports the `tsconfig.json` `"paths"` and `"baseUrl"` options. You can learn more about this feature on the [Module Path aliases documentation](/docs/advanced-features/module-path-aliases.md). + +## Incremental type checking + +Since `v10.2.1` Next.js supports [incremental type checking](https://www.typescriptlang.org/tsconfig#incremental) when enabled in your `tsconfig.json`, this can help speed up type checking in larger applications. + +It is highly recommended to be on at least `v4.3.0-beta` of TypeScript to experience the best performance when leveraging this feature.