niieani / typescript-vs-flowtype

Differences between Flowtype and TypeScript -- syntax and usability

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

type spread operator

vkurchatkin opened this issue · 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.