Welcome to the TypeScript Guidebook.
This guidebook suppliments the official TypeScript Handbook while focusing on how to get the most out of TypeScript with minimal effort.
It will cover anything and everything you need when writing TypeScript, from how to use the language, to coding style and any tool that may be useful.
- Stay true to JavaScript
- Use TypeScript as a gradual type system on top of JavaScript.
- Focus on code efficiency
- Focus on tool compatibility
- IDE / Editors
- Linter
I'll periodically update this repo. You can click the watch button if you want to be notified.
Recently I do most of my work in VS Code. So if you find that some of the guidelines doesn't work well in your IDE, let me know and we can see how to get it working on your IDE.
- Introduction
- JavaScript Syntax
- TypeScript Syntax
- Files and Projects
- Coding Practice
- Typings
- Tooling
- draft File structures
- draft Types
- draft Objects
- draft Destructuring
- draft Strings
- draft Functions
- draft Control statements
- draft Modules
- draft Iterators and Generators
- draft Properties
- draft Variables
- draft Hoisting
- draft Comparison Operators & Equality
- draft Blocks
- draft Comments
- draft Whitespaces
- draft Commas
- draft Semicolons
- draft Type Casting & Coercion
- draft Naming Conventions
- draft Events
- draft ECMAScript 6 Styles
-
Follow the
markdown style guide
-
Each section heading should be neutral, e.g. "
var
keyword" instead of "avoidvar
"Why? The heading would be used as link. So if the style guide suggestion changes, keeping the heading neutral would avoid broken links.