typescript-tutorial README

The project's README from github.com/xcatliu/typescript-tutorial. As one markdown file: README.md.


next: introduction/README.md

TypeScript 入门教程

Actions Status

从 JavaScript 程序员的角度总结思考,循序渐进的理解 TypeScript。

关于本书

本书是作者在学习 TypeScript 后整理的学习笔记。

随着对 TypeScript 理解的加深和 TypeScript 社区的发展,本书也会做出相应的更新,欢迎大家 Star 收藏。

为什么要写本书

TypeScript 虽然有官方手册及其非官方中文版,但是它每一章都希望能详尽的描述一个概念,导致前面的章节就会包含很多后面才会学习到的内容,而有些本该一开始就了解的基础知识却在后面才会涉及。如果是初学者,可能需要阅读多次才能理解。所以它更适合用来查阅,而不是学习。

与官方手册不同,本书着重于从 JavaScript 程序员的角度总结思考,循序渐进的理解 TypeScript,希望能给大家一些帮助和启示。

由于一些知识点与官方手册重合度很高,本书会在相应章节推荐直接阅读中文手册。

关于 TypeScript

TypeScript 是 JavaScript 的一个超集,主要提供了类型系统和对 ES6 的支持,它由 Microsoft 开发,代码开源于 GitHub 上。

它的第一个版本发布于 2012 年 10 月,经历了多次更新后,现在已成为前端社区中不可忽视的力量,不仅在 Microsoft 内部得到广泛运用,而且 Google 开发的 Angular 从 2.0 开始就使用了 TypeScript 作为开发语言,Vue 3.0 也使用 TypeScript 进行了重构。

适合人群

本书适合以下人群

本书不适合以下人群

评价

《TypeScript 入门教程》全面介绍了 TypeScript 强大的类型系统,完整而简洁,示例丰富,比官方文档更易读,非常适合作为初学者学习 TypeScript 的第一本书。

—— 阮一峰

版权许可

本书采用「保持署名—非商用」创意共享 4.0 许可证。

只要保持原作者署名和非商用,您可以自由地阅读、分享、修改本书。

详细的法律条文请参见创意共享网站。

相关资料

typescript-tutorial (xcatliu/typescript-tutorial)

Searching Database…

What is this?This is a free online book that teaches TypeScript from the perspective of a JavaScript developer, moving step by step through the type system and ES6 support TypeScript adds.
Is this a book or does it come with exercises and code?It is a written tutorial/book built as a static site (with Pagic), not a course with graded exercises; it also has an EPUB build via pandoc.
How do I start reading it?Read it online via the hosted site or the GitHub repo; there is no installation needed to use it as a reader.
What should I already know before starting?You should be comfortable with JavaScript (having read something like 'Professional JavaScript for Web Developers'), know ES6 basics, and know how to use npm/Node.js tools.
Who should skip this book?It's not for people who haven't systematically learned JavaScript, and it's not needed by people who are already very proficient in TypeScript.
Who is this book written for?It's aimed at JavaScript developers who want to learn TypeScript or deepen their understanding of it, rather than complete programming beginners.
Can I freely copy and modify this book?It's licensed under a Creative Commons 'Attribution-NonCommercial' 4.0 license, so you can freely read, share, and modify it as long as you credit the author and don't use it commercially.
How is this different from the official TypeScript Handbook?Unlike the official Handbook, which is detailed but not beginner-friendly and better suited for reference, this book is organized step by step for learning, building concepts in a logical order for JS developers rather than covering every detail of each topic upfront.
Who endorsed this book?Well-known Chinese developer Ruan Yifeng (阮一峰) praised it as comprehensive, clear, and a great first book for TypeScript beginners, even easier to read than the official docs.
Can I get an offline copy like an ebook?Yes, the repo includes a pandoc script that generates an EPUB version of the book from its markdown source.
Is this the same content as the Chinese translation of the Handbook?No, where topics overlap heavily with the official Handbook, this book recommends reading the Chinese Handbook translation directly instead of duplicating it.
Creator
xcatliu
Size
6.6 MB
Stars
10.7K
Updated
CommitAug 18
Age
10y
Commits · 90 Days