5 lines
159 B
TypeScript
5 lines
159 B
TypeScript
|
var intersection: { x: number, y: number } & { w: string, z: string };
|
||
|
|
||
|
var rest1: { y: number, w: string, z: string };
|
||
|
var {x, ...rest1 } = intersection;
|