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
If I'm understanding correctly, you're expecting this transform to allow spreading non-object as per the ES proposal.
I'd say that this is not the objective of this transform (and sorry for choosing a ambiguous name), which is to re-write spreaded objects as property assignments. I had updated the README (https://github.com/felixputera/ts-transform-object-spread#motivation) with more details so I hope that it clarifies my intention!
In proposal-object-rest-spread, it is stated that:
Practically, you can try on Chrome console to see the output of non-object spread. As an example:
Currently, if you do this (spreading non object), typescript will raise
But actually it's allowed and here's an issue related to this.
The text was updated successfully, but these errors were encountered: