Skip to content

no-duplicate-spead-property: filter by contextual type#559

Open
ajafff wants to merge 2 commits intomasterfrom
object-spread-contextual-type
Open

no-duplicate-spead-property: filter by contextual type#559
ajafff wants to merge 2 commits intomasterfrom
object-spread-contextual-type

Conversation

@ajafff
Copy link
Copy Markdown
Member

@ajafff ajafff commented Feb 26, 2019

Checklist

Overview of change

const spreadProperties = getPropertyInfoFromType(this.checker.getTypeAtLocation(node)!);
if (!spreadProperties.known)
return spreadProperties;
const contextualType = this.checker.getContextualType(node);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this should be done once for the object literal and not once per SpreadAssignment

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.

1 participant