From dd96be4fd8146be87cf415bdea8510e418f284e4 Mon Sep 17 00:00:00 2001 From: Usamaliaquat123 Date: Tue, 11 Feb 2020 13:43:39 -0800 Subject: [PATCH 1/7] change dev to dep --- website/versioned_docs/version-0.60/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-0.60/typescript.md b/website/versioned_docs/version-0.60/typescript.md index 9df79868ecd..1727eca9017 100644 --- a/website/versioned_docs/version-0.60/typescript.md +++ b/website/versioned_docs/version-0.60/typescript.md @@ -35,7 +35,7 @@ ignite new MyTSProject ```sh yarn add typescript @types/jest @types/react @types/react-native @types/react-test-renderer # or for npm -npm install --save-dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer +npm install --save typescript @types/jest @types/react @types/react-native @types/react-test-renderer ``` 2. Add a TypeScript config file. Create a `tsconfig.json` in the root of your project: From 489e2b7a73850d90c8a17ebe46011e39b883a7a4 Mon Sep 17 00:00:00 2001 From: Usamaliaquat123 Date: Tue, 11 Feb 2020 13:48:52 -0800 Subject: [PATCH 2/7] add dev dep --- website/versioned_docs/version-0.60/typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/versioned_docs/version-0.60/typescript.md b/website/versioned_docs/version-0.60/typescript.md index 1727eca9017..4bb3a3069ca 100644 --- a/website/versioned_docs/version-0.60/typescript.md +++ b/website/versioned_docs/version-0.60/typescript.md @@ -33,9 +33,9 @@ ignite new MyTSProject 1. Add TypeScript and the types for React Native and Jest to your project. ```sh -yarn add typescript @types/jest @types/react @types/react-native @types/react-test-renderer +yarn add typescript @types/jest @types/react @types/react-native @types/react-test-renderer -D # or for npm -npm install --save typescript @types/jest @types/react @types/react-native @types/react-test-renderer +npm install --save-dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer ``` 2. Add a TypeScript config file. Create a `tsconfig.json` in the root of your project: From 9251920ce39955fe8ca4a26fa9637b766b94e54d Mon Sep 17 00:00:00 2001 From: Usamaliaquat123 Date: Tue, 11 Feb 2020 13:57:25 -0800 Subject: [PATCH 3/7] docs : fix link of rn-ts-cheats --- website/versioned_docs/version-0.60/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-0.60/typescript.md b/website/versioned_docs/version-0.60/typescript.md index 4bb3a3069ca..69baa2b3c64 100644 --- a/website/versioned_docs/version-0.60/typescript.md +++ b/website/versioned_docs/version-0.60/typescript.md @@ -162,7 +162,7 @@ You can explore the syntax more in the [TypeScript playground][tsplay]. - [TypeScript Handbook][ts-handbook] - [React's documentation on TypeScript][react-ts] -- [React + TypeScript Cheatsheets][cheat] has a good overview on how to use React with TypeScript +- [React + TypeScript Cheatsheets][cheats] has a good overview on how to use React with TypeScript ## Using Custom Path Aliases with TypeScript From 143197e7a3be40f358cff69e76f9e7ad842e8c2e Mon Sep 17 00:00:00 2001 From: Usama Liaquat Date: Wed, 12 Feb 2020 23:47:31 +0500 Subject: [PATCH 4/7] correct from docs/typescript --- website/versioned_docs/version-0.60/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-0.60/typescript.md b/website/versioned_docs/version-0.60/typescript.md index 69baa2b3c64..154bf3203dd 100644 --- a/website/versioned_docs/version-0.60/typescript.md +++ b/website/versioned_docs/version-0.60/typescript.md @@ -33,7 +33,7 @@ ignite new MyTSProject 1. Add TypeScript and the types for React Native and Jest to your project. ```sh -yarn add typescript @types/jest @types/react @types/react-native @types/react-test-renderer -D +yarn add --dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer # or for npm npm install --save-dev typescript @types/jest @types/react @types/react-native @types/react-test-renderer ``` From 015aabce5dbe86ea21b4d602aad41502a76b3934 Mon Sep 17 00:00:00 2001 From: Usama Liaquat Date: Sun, 23 Feb 2020 21:36:47 -0800 Subject: [PATCH 5/7] change doc/*md ;) --- docs/typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/typescript.md b/docs/typescript.md index f0d7e53394b..c2900abd088 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -164,7 +164,7 @@ You can explore the syntax more in the [TypeScript playground][tsplay]. - [TypeScript Handbook][ts-handbook] - [React's documentation on TypeScript][react-ts] -- [React + TypeScript Cheatsheets][cheat] has a good overview on how to use React with TypeScript +- [React + TypeScript Cheatsheets][cheats] has a good overview on how to use React with TypeScript ## Using Custom Path Aliases with TypeScript @@ -217,7 +217,7 @@ npm install --save-dev babel-plugin-module-resolver [ts-template]: https://github.com/react-native-community/react-native-template-typescript [babel]: /react-native/docs/javascript-environment#javascript-syntax-transformers [babel-7-caveats]: https://babeljs.io/docs/en/next/babel-plugin-transform-typescript -[cheat]: https://github.com/typescript-cheatsheets/react-typescript-cheatsheet#reacttypescript-cheatsheets +[cheats]: https://github.com/typescript-sheets/react-typescript-cheatsheet#reacttypescript-cheatsheets [ts-handbook]: http://www.typescriptlang.org/docs/home.html [props]: /react-native/docs/props.html [state]: /react-native/docs/state.html From 328aaab92fefcdee02ab3d0dc85178f0a0e05f34 Mon Sep 17 00:00:00 2001 From: Usama Liaquat Date: Mon, 24 Feb 2020 22:15:59 +0500 Subject: [PATCH 6/7] done --- docs/typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/typescript.md b/docs/typescript.md index c2900abd088..2bda9b5d6e4 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -164,7 +164,7 @@ You can explore the syntax more in the [TypeScript playground][tsplay]. - [TypeScript Handbook][ts-handbook] - [React's documentation on TypeScript][react-ts] -- [React + TypeScript Cheatsheets][cheats] has a good overview on how to use React with TypeScript +- [React + TypeScript Cheatsheets][cheat] has a good overview on how to use React with TypeScript ## Using Custom Path Aliases with TypeScript @@ -217,7 +217,7 @@ npm install --save-dev babel-plugin-module-resolver [ts-template]: https://github.com/react-native-community/react-native-template-typescript [babel]: /react-native/docs/javascript-environment#javascript-syntax-transformers [babel-7-caveats]: https://babeljs.io/docs/en/next/babel-plugin-transform-typescript -[cheats]: https://github.com/typescript-sheets/react-typescript-cheatsheet#reacttypescript-cheatsheets +[cheat]: https://github.com/typescript-sheets/react-typescript-cheatsheet#reacttypescript-cheatsheets [ts-handbook]: http://www.typescriptlang.org/docs/home.html [props]: /react-native/docs/props.html [state]: /react-native/docs/state.html From cc5d77c59728893d721d6af253563b4bee0d412f Mon Sep 17 00:00:00 2001 From: Usama Liaquat Date: Mon, 24 Feb 2020 22:56:19 +0500 Subject: [PATCH 7/7] broken link --- docs/typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/typescript.md b/docs/typescript.md index 2bda9b5d6e4..f0d7e53394b 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -217,7 +217,7 @@ npm install --save-dev babel-plugin-module-resolver [ts-template]: https://github.com/react-native-community/react-native-template-typescript [babel]: /react-native/docs/javascript-environment#javascript-syntax-transformers [babel-7-caveats]: https://babeljs.io/docs/en/next/babel-plugin-transform-typescript -[cheat]: https://github.com/typescript-sheets/react-typescript-cheatsheet#reacttypescript-cheatsheets +[cheat]: https://github.com/typescript-cheatsheets/react-typescript-cheatsheet#reacttypescript-cheatsheets [ts-handbook]: http://www.typescriptlang.org/docs/home.html [props]: /react-native/docs/props.html [state]: /react-native/docs/state.html