编辑器
interface Point { x: number; y: number; } let pointPart: Partial
= {}; // `Partial` allows x and y to be optional pointPart.x = 10; console.log(pointPart);
{ x: 10 }