You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classPoint{constructor(publicx: number,publicy: number){}add(x: number,y: number): void{this.x+=x;this.y+=y;}}// Strict data structureletpointData: [number,number]=[0,0];// That does not compileletpoint=newPoint(...pointData);// That does not compile toopoint.add(...pointData);
Is there a reason why it's not supported ?
Regards,
Sébastien.
The text was updated successfully, but these errors were encountered:
sebdoucet
changed the title
Spread operator and destructuring
Spread operator and Union types
Jan 27, 2016
Hi,
As it is right now, it's not possible to do that:
Is there a reason why it's not supported ?
Regards,
Sébastien.
The text was updated successfully, but these errors were encountered: