type spread operator
vkurchatkin opened this issue · 3 comments
vkurchatkin commented
Could you clarify, what you mean by type spread operator
?
niieani commented
The spread type
{ ...A, ...B }
combines the properties, but not the call or construct signatures, of entities A and B.
Source: microsoft/TypeScript#11150
Note that this is spread for types, not for actual objects (which is also supported and uses the underlying spread types).
vkurchatkin commented
niieani commented
Ah, I think this still hasn't been released and is slated for TS 2.2. I'll add a note. Thanks for spotting.