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
The result of a spread operator should not contribute to the excess property checks. only the properties listed in the object literal should be checked. i.e.:
declarevarx: {a: number};vary: {b: number}={ ...x,b: 0};// no errors on x, but should be OKvarz: {b: number}={ ...x,b: 0,c: 1};// c is excess