Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type spread operator #2

Closed
vkurchatkin opened this issue Dec 23, 2016 · 3 comments
Closed

type spread operator #2

vkurchatkin opened this issue Dec 23, 2016 · 3 comments

Comments

@vkurchatkin
Copy link

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

@niieani
Copy link
Owner

niieani commented Dec 23, 2016

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
Copy link
Author

vkurchatkin commented Dec 23, 2016

@niieani
Copy link
Owner

niieani commented Dec 23, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants