https://github.com/liuxingyu521/typescript-step-by-step
https://github.com/liuxingyu521/typescript-step-by-step
self-learning ts ts-learn tutorial typescript
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/liuxingyu521/typescript-step-by-step
- Owner: liuxingyu521
- Created: 2020-02-28T10:07:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T10:49:08.000Z (about 3 years ago)
- Last Synced: 2025-02-01T19:44:47.220Z (about 1 year ago)
- Topics: self-learning, ts, ts-learn, tutorial, typescript
- Language: TypeScript
- Size: 428 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
typescript-step-by-step
> 好记性不如烂笔头。
> 一步步跟着 [官方文档](https://www.typescriptlang.org/docs/home.html) 深入 Ts.
> Let's begin !
## 知识点总结
0. [基本类型](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/00-basic-types/index.ts)
1. [变量申明](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/01-variable-declarations/index.ts)
2. [接口](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/02-interfaces/index.ts)
3. [类](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/03-classes/index.ts)
4. [函数](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/04-functions/index.ts)
5. [枚举](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/05-enums/index.ts)
6. [联合类型和交叉类型](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/06-union-intersection-types/index.ts)
7. [泛型](https://github.com/liuxingyu521/typescript-step-by-step/blob/master/src/07-generics/index.ts)
## How to use
1. 在根目录执行 `yarn` 安装依赖
2. 查看每章内容
- 在 `src` 目录下查看每一章的内容,总结都在开头的注释
- 在每一章下面执行 `npx tsc -t ES5` 后生成 `index.js` 文件,然后 `node index.js` 查看输出