-
Notifications
You must be signed in to change notification settings - Fork 12.8k
When using aliased intersection types, intellisense shows the constituent types and not the alias name #35537
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
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Comments
Relevant / duplicate (?): #34556 |
Please note that you're talking about intersection types ( |
Thanks for the heads up, I have updated the ticket accordingly |
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeScript Version: 3.7 && playground
Search Terms:
intersection type alias
Code
When using a intersection type with an alias, you expect the intellisense label to show the name of the alias, not the constituent types.
In the following example, I would expect to see the label as "C", however TypeScript reports the type label as "A & B"
However, when using interfaces which extend multiple interfaces, you see the interface name:

Expected behavior:
Type alias intellisense should function the same as interface intellisense
Playground Link:
Intersection types with type alias
Interfaces
The text was updated successfully, but these errors were encountered: