-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Union Types #824
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
Merged
Merged
Union Types #824
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
e836fe1
Initial implementation of Union Types
ahejlsberg d70494f
Narrowing of variable types using typeof/instanceof type guards
ahejlsberg b8923b3
Support symbol kind for union properties
mhegazy 5669f63
add test for quick info
mhegazy c439ae4
Add support for union properties in goto def
mhegazy 95584e9
Addressing CR feedback
ahejlsberg fd5b808
Accepting new baselines
ahejlsberg 3a17b02
Improved type argument inference with union types
ahejlsberg ea4cbbe
Merge branch 'master' into unionTypes
ahejlsberg 5c661ba
Accepting new baselines after merge with master
ahejlsberg 779db6e
Support find all refs on union properties
mhegazy 2eb51ab
Use getRootSymbols for all union property needs
mhegazy dc43e83
Merge branch 'unionTypes' into unionTypesLS
mhegazy 927f04f
Fix contextually typed object literal proeprties that are not propert…
mhegazy 9f43ac0
respond to code review remarks
mhegazy bacb9d0
Test updates from union changes
danquirk 8ce1760
Fixing merge conflicts
danquirk f5a9fee
ensure unionProperty symbols have declarations set at creation time
mhegazy 483afea
Less aggressive subtype reduction in union types
ahejlsberg 4e02b9f
Merge branch 'unionTypes' of https://github.com/Microsoft/TypeScript …
ahejlsberg c9a42c1
Accepting new baselines
ahejlsberg 2ce627c
Handle union properties completions on apparant types
mhegazy 4442b45
Add a temporary fix to quick info
mhegazy 04e5309
Merge branch 'unionTypes' into unionTypesLS
mhegazy eee1602
Merge pull request #861 from Microsoft/unionTypesLS
mhegazy 83d9aed
Correct contextual typing with union types
ahejlsberg a76a418
Accepting new baselines
ahejlsberg 869ee41
Addressing CR feedback
ahejlsberg fc842b1
Merge branch 'master' into unionTypes
ahejlsberg 4f4f59a
Merge changes from master in services.ts
mhegazy f5cd414
Merge branch 'master' into unionTypes
mhegazy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Addressing CR feedback
- Loading branch information
commit 95584e91041f705a59be8b1c70e940cc0ee508a8
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments on what sort of sturcture you're building up here would be very helpful. right now this line is hard to understand. You're mapping over all the signature lists, and for each over those, you're extracting out the i'ith signature?