const { name, age }: { name: string; age: number } = obj;
ts 中对象解构赋值时定义类型
最新推荐文章于 2024-08-15 18:19:19 发布
const { name, age }: { name: string; age: number } = obj;