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
TypeScript Version: 2.9.2 Search Terms: strict object literal higher order function object spread Code
// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
TypeScript Version: 2.9.2
Search Terms: strict object literal higher order function object spread
Code
Expected behavior:
Actual behavior:
I would expect the
hoc(a => ({ ...a, b: 10 }))
to throw an error.Playground Link: playground
The text was updated successfully, but these errors were encountered: