mixins
摘要:
// 对象的混入 type A = { name: string } type B = { age: number } const a9:A = { name: 'xiaobai' } const b9:B = { age: 15 } // 使用扩展运算符此时c9的类型推断 // { // name 阅读全文
posted @ 2025-02-16 17:34 ChoZ 阅读(2) 评论(0) 推荐(0) 编辑
posted @ 2025-02-16 17:34 ChoZ 阅读(2) 评论(0) 推荐(0) 编辑
posted @ 2025-02-16 16:54 ChoZ 阅读(1) 评论(0) 推荐(0) 编辑