Skip to content

Conversation

sandersn
Copy link
Member

Previously, the code didn't account for the fact that spreading a union creates a union. In fact, before Decemeber, spreading a union in JSX didn't create a union.

Now the check for properties of the spread type uses getPropertiesOfType, which works with unions, instead of accessing the properties property directly.

Fixes Internal Microsoft Project 110010111010 (Hint: It has a BLUE icon and uses JSX).

Previously, the code didn't account for the fact that spreading a union
creates a union. In fact, before Decemeber, spreading a union in JSX
didn't create a union.

Now the check for properties of the spread type uses
`getPropertiesOfType`, which works with unions, instead of accessing the
`properties` property directly.
@sandersn sandersn requested a review from weswigham January 22, 2018 21:38
@sandersn sandersn merged commit 3735bb6 into master Jan 22, 2018
@sandersn sandersn deleted the fix-jsx-attribute-checking branch January 22, 2018 21:57
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
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