English 中文(简体)
工会类型
原文:TypeScript use union of union

Can someone please help me understand what is happening here? type A = { propA: string }; type B = { propB: number } type U = A | B; class Model {} class SingleModel extends Model { constructor(...

热门标签