{"id":13457774,"url":"https://github.com/xcatliu/typescript-tutorial","last_synced_at":"2025-05-13T21:08:23.182Z","repository":{"id":37294595,"uuid":"58509963","full_name":"xcatliu/typescript-tutorial","owner":"xcatliu","description":"TypeScript 入门教程","archived":false,"fork":false,"pushed_at":"2024-08-18T17:20:05.000Z","size":6781,"stargazers_count":10580,"open_issues_count":74,"forks_count":1344,"subscribers_count":175,"default_branch":"master","last_synced_at":"2025-04-28T12:12:18.011Z","etag":null,"topics":["javascript","tutorial","typescript"],"latest_commit_sha":null,"homepage":"https://ts.xcatliu.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xcatliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"xcatliu","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://github.com/xcatliu/buy-me-a-coffee"}},"created_at":"2016-05-11T03:02:41.000Z","updated_at":"2025-04-28T01:13:57.000Z","dependencies_parsed_at":"2024-01-29T08:11:39.602Z","dependency_job_id":"d1174864-0020-43fc-ac3d-1ebd16f715d6","html_url":"https://github.com/xcatliu/typescript-tutorial","commit_stats":{"total_commits":318,"total_committers":51,"mean_commits":6.235294117647059,"dds":"0.23270440251572322","last_synced_commit":"1b71bebef4025d3d18e2fa02fdfe20075ba737fb"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Ftypescript-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Ftypescript-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Ftypescript-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Ftypescript-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcatliu","download_url":"https://codeload.github.com/xcatliu/typescript-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311332,"owners_count":21569009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","tutorial","typescript"],"created_at":"2024-07-31T09:00:36.516Z","updated_at":"2025-04-28T12:12:38.595Z","avatar_url":"https://github.com/xcatliu.png","language":"TypeScript","readme":"---\nnext: introduction/README.md\n---\n\n# TypeScript 入门教程\n\n[![Actions Status](https://github.com/xcatliu/typescript-tutorial/workflows/gh-pages/badge.svg)](https://github.com/xcatliu/typescript-tutorial/actions)\n\n从 JavaScript 程序员的角度总结思考，循序渐进的理解 TypeScript。\n\n## 关于本书\n\n- [在线阅读](https://ts.xcatliu.com/)\n- [GitHub 地址][GitHub]\n- 作者：[xcatliu](https://github.com/xcatliu/)\n- 本网站使用 [Pagic](https://github.com/xcatliu/pagic) 构建\n\n本书是作者在学习 [TypeScript] 后整理的学习笔记。\n\n随着对 TypeScript 理解的加深和 TypeScript 社区的发展，本书也会做出相应的更新，欢迎大家 [Star 收藏][GitHub]。\n\n- 发现文章内容有问题，可以直接在页面下方评论\n- 对项目的建议，可以[提交 issue](https://github.com/xcatliu/typescript-tutorial/issues/new) 向作者反馈\n- 欢迎直接提交 pull-request 参与贡献\n\n## 为什么要写本书\n\nTypeScript 虽然有[官方手册][Handbook]及其[非官方中文版][中文手册]，但是它每一章都希望能详尽的描述一个概念，导致前面的章节就会包含很多后面才会学习到的内容，而有些本该一开始就了解的基础知识却在后面才会涉及。如果是初学者，可能需要阅读多次才能理解。所以它更适合用来查阅，而不是学习。\n\n与官方手册不同，本书着重于从 JavaScript 程序员的角度总结思考，循序渐进的理解 TypeScript，希望能给大家一些帮助和启示。\n\n由于一些知识点与官方手册重合度很高，本书会在相应章节推荐直接阅读中文手册。\n\n## 关于 TypeScript\n\n[TypeScript] 是 JavaScript 的一个超集，主要提供了**类型系统**和**对 ES6 的支持**，它由 Microsoft 开发，代码[开源于 GitHub](https://github.com/Microsoft/TypeScript) 上。\n\n它的第一个版本发布于 2012 年 10 月，经历了多次更新后，现在已成为前端社区中不可忽视的力量，不仅在 Microsoft 内部得到广泛运用，而且 Google 开发的 [Angular](https://angular.io/) 从 2.0 开始就使用了 TypeScript 作为开发语言，[Vue](https://vuejs.org/) 3.0 也使用 TypeScript 进行了重构。\n\n## 适合人群\n\n本书适合以下人群\n\n- 熟悉 JavaScript，至少阅读过一遍[《JavaScript 高级程序设计》](https://book.douban.com/subject/10546125/)\n- 了解 ES6，推荐阅读 [ECMAScript 6 入门]\n- 了解 Node.js，会用 npm 安装及使用一些工具\n- 想了解 TypeScript 或者想对 TypeScript 有更深的理解\n\n本书**不适合**以下人群\n\n- 没有系统学习过 JavaScript\n- 已经能够很熟练的运用 TypeScript\n\n## 评价\n\n\u003e 《TypeScript 入门教程》全面介绍了 TypeScript 强大的类型系统，完整而简洁，示例丰富，比官方文档更易读，非常适合作为初学者学习 TypeScript 的第一本书。\n\u003e\n\u003e —— [阮一峰](https://github.com/ruanyf)\n\n## 版权许可\n\n本书采用「保持署名—非商用」创意共享 4.0 许可证。\n\n只要保持原作者署名和非商用，您可以自由地阅读、分享、修改本书。\n\n详细的法律条文请参见[创意共享](http://creativecommons.org/licenses/by-nc/4.0/)网站。\n\n## 相关资料\n\n- [TypeScript 官网][TypeScript]\n- [Handbook]（[中文版][中文手册]）\n- [ECMAScript 6 入门]\n\n[GitHub]: https://github.com/xcatliu/typescript-tutorial\n[TypeScript]: http://www.typescriptlang.org/\n[Handbook]: http://www.typescriptlang.org/docs/handbook/basic-types.html\n[中文手册]: https://zhongsp.gitbook.io/typescript-handbook/\n[ECMAScript 6 入门]: http://es6.ruanyifeng.com/\n","funding_links":["https://github.com/sponsors/xcatliu","https://github.com/xcatliu/buy-me-a-coffee"],"categories":["TypeScript","Typescript","JavaScript框架","Others","目录","知识库/教程","Books","JavaScript"],"sub_categories":["其他_文本生成、文本对话","TypeScript","Admin Template \u0026 Component Library"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcatliu%2Ftypescript-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcatliu%2Ftypescript-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcatliu%2Ftypescript-tutorial/lists"}