An open API service indexing awesome lists of open source software.

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

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` 查看输出