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
Accelerator
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
13.7k
Star
110k
Code
Issues
5k+
Pull requests
27
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Preserve type refinements in closures created past last assignment
- #56908
#56908
Merged
Anders Hejlsberg (ahejlsberg)
merged 14 commits into
main
microsoft/TypeScript:main
from
fix35124
microsoft/TypeScript:fix35124
Copy head branch name to clipboard
Jan 9, 2024
Conversation
Commits
14
(14)
Checks
Files changed
Merged
Preserve type refinements in closures created past last assignment
#56908
Anders Hejlsberg (ahejlsberg)
merged 14 commits into
main
microsoft/TypeScript:main
from
fix35124
microsoft/TypeScript:fix35124
Copy head branch name to clipboard
Commits
Commits on Dec 31, 2023
Preserve narrowings in closures created past last assignment
Anders Hejlsberg (ahejlsberg)
committed
86f50c6
View commit details
Copy full SHA for 86f50c6
Browse repository at this point
Accept new baselines
Anders Hejlsberg (ahejlsberg)
committed
f698783
View commit details
Copy full SHA for f698783
Browse repository at this point
Add tests
Anders Hejlsberg (ahejlsberg)
committed
bdbc388
View commit details
Copy full SHA for bdbc388
Browse repository at this point
Preserve formatting (though it's odd)
Anders Hejlsberg (ahejlsberg)
committed
2739399
View commit details
Copy full SHA for 2739399
Browse repository at this point
Fix formatting
Anders Hejlsberg (ahejlsberg)
committed
a490ef4
View commit details
Copy full SHA for a490ef4
Browse repository at this point
Commits on Jan 1, 2024
Update tests
Anders Hejlsberg (ahejlsberg)
committed
e2d90d9
View commit details
Copy full SHA for e2d90d9
Browse repository at this point
Commits on Jan 3, 2024
Support for all types of mutable variables
Anders Hejlsberg (ahejlsberg)
committed
adda3ee
View commit details
Copy full SHA for adda3ee
Browse repository at this point
Accept new baselines
Anders Hejlsberg (ahejlsberg)
committed
9a1faff
View commit details
Copy full SHA for 9a1faff
Browse repository at this point
Commits on Jan 8, 2024
Exclude var variables and exported/global variables
Anders Hejlsberg (ahejlsberg)
committed
1cccdf2
View commit details
Copy full SHA for 1cccdf2
Browse repository at this point
Update tests and add more tests in a module
Anders Hejlsberg (ahejlsberg)
committed
5aff92b
View commit details
Copy full SHA for 5aff92b
Browse repository at this point
Accept new baselines
Anders Hejlsberg (ahejlsberg)
committed
e0ccb0d
View commit details
Copy full SHA for e0ccb0d
Browse repository at this point
Fix formatting
Anders Hejlsberg (ahejlsberg)
committed
cd9b30a
View commit details
Copy full SHA for cd9b30a
Browse repository at this point
Commits on Jan 9, 2024
Merge branch 'main' into fix35124
Anders Hejlsberg (ahejlsberg)
committed
1466ba5
View commit details
Copy full SHA for 1466ba5
Browse repository at this point
Reinstate isCatchClauseVariableDeclaration
Anders Hejlsberg (ahejlsberg)
committed
28da1c5
View commit details
Copy full SHA for 28da1c5
Browse repository at this point
You can’t perform that action at this time.