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 }}
microsoft
/
TypeScript
Public
Notifications
You must be signed in to change notification settings
Fork
14.4k
Star
111k
Code
Issues
4.9k
Pull requests
156
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
const
modifier on type parameters
- #51865
#51865
Merged
Anders Hejlsberg (ahejlsberg)
merged 15 commits into
main
microsoft/TypeScript:main
from
fix30680
microsoft/TypeScript:fix30680
Copy head branch name to clipboard
Dec 16, 2022
Conversation
Commits
15
(15)
Checks
Files changed
Merged
const
modifier on type parameters
#51865
Anders Hejlsberg (ahejlsberg)
merged 15 commits into
main
microsoft/TypeScript:main
from
fix30680
microsoft/TypeScript:fix30680
Copy head branch name to clipboard
Commits
Commits on Dec 12, 2022
`const` modifier on type parameters + revised contextual type logic
Anders Hejlsberg (ahejlsberg)
committed
bd0ce7b
View commit details
Copy full SHA for bd0ce7b
Browse repository at this point
Accept new baselines
Anders Hejlsberg (ahejlsberg)
committed
7c48b0d
View commit details
Copy full SHA for 7c48b0d
Browse repository at this point
Fix modifier checking
Anders Hejlsberg (ahejlsberg)
committed
88c7149
View commit details
Copy full SHA for 88c7149
Browse repository at this point
Add tests
Anders Hejlsberg (ahejlsberg)
committed
ccf252f
View commit details
Copy full SHA for ccf252f
Browse repository at this point
Cache isConstTypeVariable check
Anders Hejlsberg (ahejlsberg)
committed
f8fd1fd
View commit details
Copy full SHA for f8fd1fd
Browse repository at this point
Commits on Dec 13, 2022
Revert "Cache isConstTypeVariable check"
Show description for c3fcf6e
Anders Hejlsberg (ahejlsberg)
committed
c3fcf6e
View commit details
Copy full SHA for c3fcf6e
Browse repository at this point
Fewer isConstTypeParameterContext checks
Anders Hejlsberg (ahejlsberg)
committed
0507bf0
View commit details
Copy full SHA for 0507bf0
Browse repository at this point
Pay attention to cached `undefined` contextual type
Anders Hejlsberg (ahejlsberg)
committed
b56d187
View commit details
Copy full SHA for b56d187
Browse repository at this point
Allow `const` modifier in more places + properly print back
Anders Hejlsberg (ahejlsberg)
committed
54f649d
View commit details
Copy full SHA for 54f649d
Browse repository at this point
Also permit `const` in method signature type parameters
Anders Hejlsberg (ahejlsberg)
committed
d2af941
View commit details
Copy full SHA for d2af941
Browse repository at this point
Fix parsing of `const` modifier in array expression type parameters
Anders Hejlsberg (ahejlsberg)
committed
a315761
View commit details
Copy full SHA for a315761
Browse repository at this point
Accept new baselines
Anders Hejlsberg (ahejlsberg)
committed
f6bbf9c
View commit details
Copy full SHA for f6bbf9c
Browse repository at this point
Merge branch 'main' into fix30680
Show description for 636d937
Anders Hejlsberg (ahejlsberg)
committed
636d937
View commit details
Copy full SHA for 636d937
Browse repository at this point
Remove unused properties from NodeLinks
Anders Hejlsberg (ahejlsberg)
committed
dccb290
View commit details
Copy full SHA for dccb290
Browse repository at this point
Commits on Dec 15, 2022
Rename `permitInvalidConstAsModifier` to `permitConstAsModifier`
Anders Hejlsberg (ahejlsberg)
committed
fde9c47
View commit details
Copy full SHA for fde9c47
Browse repository at this point
You can’t perform that action at this time.