Merge same function signatures for intersection types #31930
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
TypeScript Version: 3.6.0-dev.20190611
Search Terms: function signature merge
Code
Expected behavior: IntelliSense should ideally show only one signature.
Actual behavior: It shows two exactly same signatures. Not harming, but weird.
Playground Link: https://www.typescriptlang.org/play/#src=interface%20X%20%7B%20%0D%0A%20%20%20%20name%3A%20string%3B%0D%0A%20%20%20%20method()%3A%20void%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20Y%20%7B%20%0D%0A%20%20%20%20index%3A%20number%3B%0D%0A%20%20%20%20method()%3A%20void%3B%0D%0A%7D%0D%0A%0D%0Avar%20z%3A%20X%20%26%20Y%3B%0D%0A%0D%0Az.method()
The text was updated successfully, but these errors were encountered: