TS 文档
官方: https://www.tslang.cn/docs/handbook/basic-types.html
ts 逆变/ 协变: https://cloud.tencent.com/developer/article/2016202
基本数据类型: 数字, 字符串, 布尔类型, 数组, 元组, 枚举, any, void, undefined, null, Never, object
readonly, ?
infer相关:
注意ts 的一些方法(操作)
https://juejin.cn/post/6970841540776329224
- Pick, Omit 两者功能相反, 互为补充
- Readonly & Partial, 均为遍历, 一个只读, 一个可选
- record, 容易框架对象相关, Record<string, any>
- Exclude, extract (一个取偏集, 一个取交集)
- reutnType, 推断