Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
TypeScript
Public
Notifications
You must be signed in to change notification settings
Fork
14.1k
Star
111k
Code
Issues
4.9k
Pull requests
135
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Improve narrowing of generic types in control flow analysis
- #43183
#43183
Merged
Anders Hejlsberg (ahejlsberg)
merged 15 commits into
master
microsoft/TypeScript:master
from
fix13995
microsoft/TypeScript:fix13995
Copy head branch name to clipboard
Mar 20, 2021
Conversation
Commits
15
(15)
Checks
Files changed
Merged
Improve narrowing of generic types in control flow analysis
#43183
Anders Hejlsberg (ahejlsberg)
merged 15 commits into
master
microsoft/TypeScript:master
from
fix13995
microsoft/TypeScript:fix13995
Copy head branch name to clipboard
Commits
Commits on Mar 9, 2021
Narrow type variables with union constraints when merited by contextual type
Anders Hejlsberg (ahejlsberg)
committed
a3028a2
View commit details
Copy full SHA for a3028a2
Browse repository at this point
Commits on Mar 10, 2021
Narrow generics with union type constraints as indicated by contextual type
Anders Hejlsberg (ahejlsberg)
committed
df7d7be
View commit details
Copy full SHA for df7d7be
Browse repository at this point
Accept new baselines
Anders Hejlsberg (ahejlsberg)
committed
13cf64e
View commit details
Copy full SHA for 13cf64e
Browse repository at this point
Add tests
Anders Hejlsberg (ahejlsberg)
committed
a0fbf5c
View commit details
Copy full SHA for a0fbf5c
Browse repository at this point
Fix circularity for JSX elements
Anders Hejlsberg (ahejlsberg)
committed
1a695e9
View commit details
Copy full SHA for 1a695e9
Browse repository at this point
Commits on Mar 11, 2021
Remove unnecessary isConstraintPosition information from flow cache key
Anders Hejlsberg (ahejlsberg)
committed
a05ff0b
View commit details
Copy full SHA for a05ff0b
Browse repository at this point
Update comment
Anders Hejlsberg (ahejlsberg)
committed
0e76720
View commit details
Copy full SHA for 0e76720
Browse repository at this point
Add additional tests
Anders Hejlsberg (ahejlsberg)
committed
1f720d3
View commit details
Copy full SHA for 1f720d3
Browse repository at this point
Commits on Mar 13, 2021
Rename to getNarrowableTypeForReference, remove getConstraintForLocation
Anders Hejlsberg (ahejlsberg)
committed
a96cbab
View commit details
Copy full SHA for a96cbab
Browse repository at this point
Add comment
Anders Hejlsberg (ahejlsberg)
committed
d1c23ae
View commit details
Copy full SHA for d1c23ae
Browse repository at this point
Commits on Mar 19, 2021
Fix removal of undefined in destructurings with initializers
Anders Hejlsberg (ahejlsberg)
committed
1648bcd
View commit details
Copy full SHA for 1648bcd
Browse repository at this point
Merge branch 'master' into fix13995
Anders Hejlsberg (ahejlsberg)
committed
acdf986
View commit details
Copy full SHA for acdf986
Browse repository at this point
Use getContextFreeTypeOfExpression in discriminateContextualTypeByObjectMembers
Anders Hejlsberg (ahejlsberg)
committed
4e0baf3
View commit details
Copy full SHA for 4e0baf3
Browse repository at this point
In obj[x], use constraint of obj's type only when x's type is non-generic
Anders Hejlsberg (ahejlsberg)
committed
4f3fd56
View commit details
Copy full SHA for 4f3fd56
Browse repository at this point
Add comment
Anders Hejlsberg (ahejlsberg)
committed
3c6616b
View commit details
Copy full SHA for 3c6616b
Browse repository at this point
You can’t perform that action at this time.