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
letfoo={x: 1,// always overridden
... {x: 2}};letbar=Boolean() ? {prop: 1} : {};letbaz={y: 0,prop: 0,// not always overridden, because the property is optional in 'bar'
...bar,};// this could be an enhancement:letbas={
...foo,// will be overridden completely by 'x: 3'
...bar,// will be overridden completely by '...baz'x: 3,
...baz,// NOT completely overridden by '...bar', because it doesn't contain 'y'
...bar,// uncommenting the following line results in an error on '...baz'// y: 1,};
Ref: microsoft/TypeScript#23340
The text was updated successfully, but these errors were encountered: