InertiaRSS Track and read blogs, news, and tech you care about
Read Original Open in InertiaRSS

Recommended Feeds

博客园 - 司徒正美
V
V2EX
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
月光博客
月光博客
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI

阮一峰的网络日志

No Articles

The "TypeScript Tutorial" has been released
阮一峰 · 2023-08-08 · via 阮一峰的网络日志

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)