Skip to content

don't drop index signatures when spreading object #29177

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

Closed
wants to merge 3 commits into from

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Dec 27, 2018

Fixes #27273

getNonReadonlyIndexSignature(stringIndexInfo),
getNonReadonlyIndexSignature(numberIndexInfo));
leftStringIndexInfo || rightStringIndexInfo ? createIndexInfo(getUnionType(stringIndexTypes.concat(numberIndexTypes), UnionReduction.Subtype), /*readonly*/ false) : undefined,
leftNumberIndexInfo || rightNumberIndexInfo ? createIndexInfo(getUnionType(numberIndexTypes, UnionReduction.Subtype), /*readonly*/ false) : undefined);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this always loses the declaration of the original signature. is this information necessary to retain?

@RyanCavanaugh
Copy link
Member

Closing because #27273 has not been decided yet. Will re-open if we decide to take that change.

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

Successfully merging this pull request may close these issues.

2 participants