摘要: 一:类型映射(Mapped Types) const data = { value: 123, text: "text", subData: { value: false } }; type Data = typeof data; // type Data = { // value: number; 阅读全文
posted @ 2021-06-27 20:23 老胡Andy 阅读(252) 评论(0) 推荐(0) 编辑