-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
When using aliased intersection types, intellisense shows the constituent types and not the alias name #35537
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Comments
alshdavid
changed the title
When using union types, the type alias is not displayed
When using union types that have an assigned alias, intellisense show the constituent types and not the alias name
Dec 6, 2019
alshdavid
changed the title
When using union types that have an assigned alias, intellisense show the constituent types and not the alias name
When using aliased union types, intellisense show the constituent types and not the alias name
Dec 6, 2019
alshdavid
changed the title
When using aliased union types, intellisense show the constituent types and not the alias name
When using aliased union types, intellisense shows the constituent types and not the alias name
Dec 6, 2019
Relevant / duplicate (?): #34556 |
Please note that you're talking about intersection types ( |
alshdavid
changed the title
When using aliased union types, intellisense shows the constituent types and not the alias name
When using aliased intersection types, intellisense shows the constituent types and not the alias name
Dec 7, 2019
Thanks for the heads up, I have updated the ticket accordingly |
RyanCavanaugh
added
the
Working as Intended
The behavior described is the intended behavior; this is not a bug
label
Dec 9, 2019
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: