by 前端子鱼 @mwc
// 将类型为字面类型(标签类型)的属性,转换为基本类型。
type PersonInfo = { name: 'Tom', age: 30, married: false, addr: { home: '123456', phone: '13111111111' } }
// 要求结果如下: type PersonInfo = { name: string, age: number, married: boolean, addr: { home: string, phone: string } }