一、学习路线

  1. 熟悉TS内置范型

二、学习资源区

1. 书籍

2. 视频

3. 相关文档

  1. 内置范型 https://www.typescriptlang.org/docs/handbook/utility-types.html
  2. TS https://www.typescriptlang.org/
  3. 规范 https://typescript.bootcss.com/declaration-files/do-s-and-don-ts.html

    小记

    零碎知识点

  1. 使用PascalCase为类型命名。
  2. 不要使用I做为接口名前缀。
  3. 使用PascalCase为枚举值命名。
  4. 使用camelCase为函数命名。
  5. 使用camelCase为属性或本地变量命名。
  6. 不要为私有属性名添加_前缀。
  7. 尽可能使用完整的单词拼写命名。
  8. 尽可能不使用 declare 定义全局接口。