TS 中的 Pick 和 Omit

    Pick (选取) 官方介绍 : 通过从 interface 中选取属性集 Keys 来构造类型指定的Type。 示例 // 原接口 interface Todo { ...