一、学习路线
- 熟悉TS内置范型
二、学习资源区
1. 书籍
2. 视频
3. 相关文档
- 内置范型 https://www.typescriptlang.org/docs/handbook/utility-types.html
- TS https://www.typescriptlang.org/
- 规范 https://typescript.bootcss.com/declaration-files/do-s-and-don-ts.html
小记
零碎知识点
- 使用PascalCase为类型命名。
- 不要使用I做为接口名前缀。
- 使用PascalCase为枚举值命名。
- 使用camelCase为函数命名。
- 使用camelCase为属性或本地变量命名。
- 不要为私有属性名添加_前缀。
- 尽可能使用完整的单词拼写命名。
- 尽可能不使用 declare 定义全局接口。
