From 5ce7b4a576e86dd3a89a319b67e9d1dfa32d33ab Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Sat, 23 Dec 2017 13:30:57 +0700 Subject: [PATCH] [docs] updated TypeScript section --- docs/in-depth/typescript.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/in-depth/typescript.md b/docs/in-depth/typescript.md index 9583ddc..bad308a 100644 --- a/docs/in-depth/typescript.md +++ b/docs/in-depth/typescript.md @@ -1,5 +1,11 @@ # TypeScript +TypeScript is, in our opinion, the best language to write your Screeps codebase in. It combines the familiarity of JavaScript with the power of static typing. + +Static typing reduces the amount of bugs in your code by detecting type errors during compile time. In general, static type checkers like TypeScript and Flow [can prevent about 15%](https://blog.acolyer.org/2017/09/19/to-type-or-not-to-type-quantifying-detectable-bugs-in-javascript/) of the bugs that end up in committed code. Not only static typing, TypeScript also provides various productivity enhancements like advanced statement completion, as well as smart code refactoring. + +To read more about how TypeScript can help you in Screeps, read [this Screeps World article](https://screepsworld.com/2017/07/typescreeps-getting-started-with-ts-in-screeps/) by [@bonzaiferroni](https://github.com/bonzaiferroni). + This section provides TypeScript-specific tips & tricks for you to make the best out of the ecosystem. ## Strict mode