niieani/typescript-vs-flowtype

type spread operator

vkurchatkin opened this issue · 3 comments

Could you clarify, what you mean by type spread operator?

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).

Ah, I think this still hasn't been released and is slated for TS 2.2. I'll add a note. Thanks for spotting.