-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Weak type detection #16047
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
Weak type detection #16047
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
bdcc4eb
Implementation for weak types
RyanCavanaugh 3c76c3e
Baselines for weak types
RyanCavanaugh beba5de
Merge branch 'master' into weakType
sandersn e570775
Do not report weak type errors for intersections
sandersn c583c32
Merge branch 'master' into weakType
sandersn 396071b
Detect weak type correctly for intersection types
sandersn 49d4aca
Merge branch 'master' into weakType
sandersn 2433f56
Remove mistakenly commited auto-generated file
sandersn c9da705
Update tests
sandersn 463e385
Fix react tests w/incorrect weak type assignments
sandersn 4bab55f
Update baselines
sandersn 4b1f1b6
Fix lint
sandersn 0b911d5
Improve comments in source and tests
sandersn d1d487c
Improve naming and refactor for readability
sandersn 548f92a
Weak types must not have call or construct sigs
sandersn f9a05a1
Re-enable weak type check for intersection props
sandersn 343572e
Rename isWeak -> isWeakType
sandersn 04c26b7
Improve documentation and naming
sandersn 2100e40
Centralize weak type checking + improve error message
ahejlsberg 3e4b83e
Accept new baselines
ahejlsberg 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
Weak types must not have call or construct sigs
This changes the definition of weak types
- Loading branch information
commit 548f92ad3487c63add24ee0bc2096382055a9403
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
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
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
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.
nit: could you rename as
isWeakType?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.
done