{"id":13494664,"url":"https://github.com/joye61/typescript-tutorial","last_synced_at":"2025-05-07T16:16:21.853Z","repository":{"id":41571002,"uuid":"155528826","full_name":"joye61/typescript-tutorial","owner":"joye61","description":"TypeScript速成教程（2小时速成）","archived":false,"fork":false,"pushed_at":"2021-04-16T01:39:44.000Z","size":87,"stargazers_count":521,"open_issues_count":0,"forks_count":86,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-07T16:16:13.873Z","etag":null,"topics":["typescript"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joye61.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T09:10:42.000Z","updated_at":"2025-04-27T08:26:51.000Z","dependencies_parsed_at":"2022-08-20T08:50:19.381Z","dependency_job_id":null,"html_url":"https://github.com/joye61/typescript-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joye61%2Ftypescript-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joye61%2Ftypescript-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joye61%2Ftypescript-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joye61%2Ftypescript-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joye61","download_url":"https://codeload.github.com/joye61/typescript-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252912934,"owners_count":21824066,"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":["typescript"],"created_at":"2024-07-31T19:01:27.001Z","updated_at":"2025-05-07T16:16:21.827Z","avatar_url":"https://github.com/joye61.png","language":null,"readme":"# TypeScript 速成教程\n\n根据[官方语言规范描述](https://github.com/microsoft/TypeScript/blob/master/spec.md#1)：TypeScript 的语法是 `ECMAScript 2015` (后面统称`ES6`) 语法的**超集**，这种说法不完全准确，比方说对于来自`ES7`的`async`和`await`语法TypeScript也提供了语言支持。\n\nTypeScript完全兼容“`ES6+`”, 学习TypeScript的时候，无需纠结语言特性到底是来自`ES6`、`ES7`、还是`ESNext`，[babel编译器](https://babeljs.io/)所支持的语言特性，TypeScript绝大部分都原生支持。\n\n本教程**不会讲解**`ES6`或者`ES6+`的知识点，作为TypeScript语言的基础，**请务必优先自行掌握 `ES6`**\n\n\n## 如何学习本教程\n\n本教程以**快速工程实践**为目标，旨在让读者**速成**，能够迅速的GET到语言的核心知识点，并付诸实践！\n\n语言始终是一种改进生产力的工具，陌生使用者最迫切的需求应该是快速掌握工具的使用，而不是在连工具都没学会使用的时候，就先沉迷于细枝末叶，奇技淫巧。真正的熟练：应该是**在实践中大量使用、在实践中踩坑、以及在实践中理解**的过程中自然形成的。\n\n\n切记：**不要钻牛角尖，更不要纠结于咬文嚼字**！\n\n\n## 编译器版本\n\n目前所有示例都通过了 `tsc` 编译器版本 `Version 3.7.2` 编译，可自行验证。如果发现了错误，请[提交Issue](https://github.com/joye61/typescript-tutorial/issues/new)，以防对他人造成误导\n\n\n## 1、类型\n\n- [1.1 为什么需要类型](./类型/为什么需要类型.md)\n- [1.2 值的类型化](./类型/值的类型化.md)\n- [1.3 简单类型](./类型/简单类型.md)\n- [1.4 数组类型](./类型/数组类型.md)\n- [1.5 函数类型](./类型/函数类型.md)\n- [1.6 枚举类型](./类型/枚举类型.md)\n- [1.7 复合类型](./类型/复合类型.md)\n- [1.8 接口类型](./类型/接口类型.md)\n- [1.9 类类型](./类型/类类型.md)\n\n\n## 2、泛型\n\n- [2.1 泛型语法](./泛型/泛型语法.md)\n- [2.2 泛型约束](./泛型/泛型约束.md)\n- [2.3 泛型数组](./泛型/泛型数组.md)\n\n## 3、类型转换\n\n- [3.1 类型别名](./类型转换/类型别名.md)\n- [3.2 类型断言](./类型转换/类型断言.md)\n\n## 4、模块\n\n- [4.1 CommonJS兼容模块](./模块/CommonJS兼容模块.md)\n\n## 5、命名空间\n\n- [5.1 命名空间](./命名空间/命名空间.md)\n- [5.2 空间拆分](./命名空间/空间拆分.md)\n- [5.3 空间嵌套](./命名空间/空间嵌套.md)\n- [5.4 空间别名](./命名空间/空间别名.md)\n\n## 6、理解声明\n\n- [6.1 为什么需要声明](./深入声明/为什么需要声明.md)\n- [6.2 内部声明](./深入声明/内部声明.md)\n- [6.3 外部声明](./深入声明/外部声明.md)\n- [6.4 三斜线指令和d.ts文件](./深入声明/三斜线指令和d.ts文件.md)\n","funding_links":[],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoye61%2Ftypescript-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoye61%2Ftypescript-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoye61%2Ftypescript-tutorial/lists"}