執行 ❯
Node 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
interface Point { x: number; y: number; } let pointPart: Partial<Point> = {}; // `Partial` allows x and y to be optional pointPart.x = 10; console.log(pointPart);
{ x: 10 }