From 561c3005ab4c0ca232fb6e55d6befbe90aa32042 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Mon, 25 May 2020 09:40:46 +0100 Subject: [PATCH 1/3] [docs] Update minimum TypeScript version to 3.2 --- docs/src/pages/guides/typescript/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/guides/typescript/typescript.md b/docs/src/pages/guides/typescript/typescript.md index 8371737e4c01d9..90d48bcb7f1c3c 100644 --- a/docs/src/pages/guides/typescript/typescript.md +++ b/docs/src/pages/guides/typescript/typescript.md @@ -2,7 +2,7 @@

You can add static typing to JavaScript to improve developer productivity and code quality thanks to TypeScript.

-Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. A minimum version of TypeScript 2.8 is required. +Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. A minimum version of TypeScript 3.2 is required. In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`: From 12e2a76ce6e8d7e14c63a53cbefbbab2932fe1ef Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Thu, 28 May 2020 11:30:47 +0200 Subject: [PATCH 2/3] Update docs/src/pages/guides/typescript/typescript.md Co-authored-by: Minh Nguyen --- docs/src/pages/guides/typescript/typescript.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/pages/guides/typescript/typescript.md b/docs/src/pages/guides/typescript/typescript.md index 90d48bcb7f1c3c..34b40d09312f6a 100644 --- a/docs/src/pages/guides/typescript/typescript.md +++ b/docs/src/pages/guides/typescript/typescript.md @@ -2,7 +2,9 @@

You can add static typing to JavaScript to improve developer productivity and code quality thanks to TypeScript.

-Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. A minimum version of TypeScript 3.2 is required. +Material-UI requires a minimum version of TypeScript 3.2. + +Have a look at the [Create React App with TypeScript](https://github.com/mui-org/material-ui/tree/master/examples/create-react-app-with-typescript) example. In order for types to work, you have to at least have the following options enabled in your `tsconfig.json`: From 0c1023fa7af4372b593e61612e88358bff06fb0c Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 1 Jun 2020 14:36:58 +0200 Subject: [PATCH 3/3] [docs] Minimum TypeScript version in platforms.md --- .../supported-platforms/supported-platforms.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms.md index befc4ca3920f83..c400d456a53e4f 100644 --- a/docs/src/pages/getting-started/supported-platforms/supported-platforms.md +++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms.md @@ -36,3 +36,7 @@ It's a must-do for static pages, but it needs to be put in balance with not doin Material-UI supports the most recent versions of React, starting with ^16.8.0 (the one with the hooks). Have a look at the older [versions](https://material-ui.com/versions/) for backward compatibility. + +## TypeScript + +Material-UI requires a minimum version of TypeScript 3.2. \ No newline at end of file