Closed arv closed 5 years ago
If the input code looks like:
React.createElement(Comp, {a: 1, ...b})
We rewrite that as
React.createElement(Comp, Object.assign({a: 1}, b))
and then we use the same strategy as before (wrapping the arguments of Object.assign in function calls that causes the type checker to work).
PTAL
The current version now works in Quip
If the input code looks like:
We rewrite that as
and then we use the same strategy as before (wrapping the arguments of Object.assign in function calls that causes the type checker to work).