TypeScript also lets you define intersection types: type PQ = P & Q;. let x: PQ;. Therefore, variable x has all properties from both P ...
確定! 回上一頁