Skip to content

When contextual type doesnt find property in unit type, use the index signature from unit type(fix the incorrectly used union type to get the signature)#27952

Merged
sheetalkamat merged 1 commit into
masterfrom
contextualSignature
Oct 17, 2018
Merged

When contextual type doesnt find property in unit type, use the index signature from unit type(fix the incorrectly used union type to get the signature)#27952
sheetalkamat merged 1 commit into
masterfrom
contextualSignature

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

Fixes #27949

…om unit type(fix the incorrectly used union type to get the signature)

Fixes #27949
Copy link
Copy Markdown
Member

@weswigham weswigham left a comment

Choose a reason for hiding this comment

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

The CI failures look like lint changes, but seem unrelated? Know why? Did the better contextual typing somehow affect the types of the things being asserted in a positive way?

@weswigham
Copy link
Copy Markdown
Member

Build failure seems unrelated; it's happening elsewhere. I'm guessing tslint updated or something?

@sheetalkamat sheetalkamat merged commit 7b9ae4d into master Oct 17, 2018
@sheetalkamat sheetalkamat deleted the contextualSignature branch October 17, 2018 21:59
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants