In short, I wrote a book.The TypeScript TutorialAlready published onWeb TaoWelcome everyone to visit.
I used to writeJavaScript TutorialAndThe ES6 TutorialNaturally, people have always asked if there areThe TypeScript Tutorial?
Hmm... Honestly, I didn't want to write at first.

My thought at that time was that TypeScript was just to add a static type system for the JS language. If you really need static types, you could consider using other more mature languages (like Rust and Java), and then compile them into JS (WASM modules). Why learn a new language then?
However, circumstances are stronger than people. TypeScript is becoming increasingly popular and has become the mainstream tool for front-end development, with various projects migrating over. I gradually changed my mind and thought it would be better to jump on the bandwagon.

At the end of 2021, I started writing, but unexpectedly, it took me more than a year,间断ly.
The writing process was very painful. I underestimated the difficulty of TypeScript. It has many counterintuitive rules to adapt to JavaScript, and the content is extensive and complex.
Moreover, there were many areas I was not familiar with, and I had to look up information while writing, which further delayed the writing progress.
In March of this year, I was almost finished writing, TypeScript 5.0 has been released suddenly, decorators now use a new syntax. I had to rewrite this chapter, so decorators now have the new syntax and the old syntax two chapters, because TypeScript supports both.

It's finally finished, and I feel relieved. Everyone is welcome to provide more feedback .
This tutorial is under the Creative Commons license, free to use, but attribution must be kept that is, the source must be credited. The source code is on GitHub, and everyone is welcome to submit issues and PRs if they find any problems.
(Complete)













