René's URL Explorer Experiment


Title: Contextual typing based on instantiated types by ahejlsberg · Pull Request #30568 · microsoft/TypeScript · GitHub

Open Graph Title: Contextual typing based on instantiated types by ahejlsberg · Pull Request #30568 · microsoft/TypeScript

X Title: Contextual typing based on instantiated types by ahejlsberg · Pull Request #30568 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Contextual typing based on instantiated types by ahejlsberg · Pull Request #30568 · microsoft/TypeScript

Open Graph Description: With this PR we improve our ability to contextually type parameters of arrow functions and function expressions passed as arguments, allowing contextual types to depend on inferences made from othe...

X Description: With this PR we improve our ability to contextually type parameters of arrow functions and function expressions passed as arguments, allowing contextual types to depend on inferences made from othe...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/30568

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1abb12f2-7bd6-ffd7-e9a0-a36539c9cf23
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA11C:26ECEB:2AB9953:364EE50:6B0196E5
html-safe-nonce3e5e8a1bf7b94bbc6e8757a6550dcbde6a907584c0e3b40c91dd9273e171b521
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTFDOjI2RUNFQjoyQUI5OTUzOjM2NEVFNTA6NkIwMTk2RTUiLCJ2aXNpdG9yX2lkIjoiMzQyNTk2MTM1NTAwMDI1NjIyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac483a6ebb1fce57d7e0e8b03b8ec34c3c88e110ab5cd2f6d56428cc70088d83b2
hovercard-subject-tagpull_request:263937843
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/30568/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/59a30a3ef12d8a50af1b0537b560662f7c62af84e92b6cf7de4ae047811c6202/microsoft/TypeScript/pull/30568
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/59a30a3ef12d8a50af1b0537b560662f7c62af84e92b6cf7de4ae047811c6202/microsoft/TypeScript/pull/30568
og:image:altWith this PR we improve our ability to contextually type parameters of arrow functions and function expressions passed as arguments, allowing contextual types to depend on inferences made from othe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/30568#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F30568
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F30568
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/30568
Reloadhttps://github.com/microsoft/TypeScript/pull/30568
Reloadhttps://github.com/microsoft/TypeScript/pull/30568
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
instantiateContextualTypeshttps://github.com/microsoft/TypeScript/tree/instantiateContextualTypes
Conversationhttps://github.com/microsoft/TypeScript/pull/30568
Commits6 (6)https://github.com/microsoft/TypeScript/pull/30568/commits
Checkshttps://github.com/microsoft/TypeScript/pull/30568/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/30568/files
Contextual typing based on instantiated typeshttps://github.com/microsoft/TypeScript/pull/30568#top
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
instantiateContextualTypeshttps://github.com/microsoft/TypeScript/tree/instantiateContextualTypes
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 24, 2019https://github.com/microsoft/TypeScript/pull/30568#issue-424662096
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
#6611https://github.com/microsoft/TypeScript/issues/6611
#21382https://github.com/microsoft/TypeScript/issues/21382
#22149https://github.com/microsoft/TypeScript/issues/22149
#25299https://github.com/microsoft/TypeScript/issues/25299
#25759https://github.com/microsoft/TypeScript/issues/25759
#25814https://github.com/microsoft/TypeScript/issues/25814
#29775https://github.com/microsoft/TypeScript/issues/29775
#30341https://github.com/microsoft/TypeScript/issues/30341
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
March 23, 2019 10:46https://github.com/microsoft/TypeScript/pull/30568#commits-pushed-7ec7f02
https://github.com/ahejlsberg
Instantiate contextual type using non-fixing mapperhttps://github.com/microsoft/TypeScript/pull/30568/commits/7ec7f02ec3d65d2b37c8d41bcf966ec98bb4ee2e
7ec7f02https://github.com/microsoft/TypeScript/pull/30568/commits/7ec7f02ec3d65d2b37c8d41bcf966ec98bb4ee2e
https://github.com/ahejlsberg
Introduce ContextFlags to propagate origin of request for contextual …https://github.com/microsoft/TypeScript/pull/30568/commits/3d0e2f5f454c127b3753aaa400ecbdda98fda66b
3d0e2f5https://github.com/microsoft/TypeScript/pull/30568/commits/3d0e2f5f454c127b3753aaa400ecbdda98fda66b
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/30568/commits/6dc8b5f8fbce993c5509704d64c221d652493f06
6dc8b5fhttps://github.com/microsoft/TypeScript/pull/30568/commits/6dc8b5f8fbce993c5509704d64c221d652493f06
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/30568/commits/887b30682bf377e28826fbeafc5abdbebf5e5e77
887b306https://github.com/microsoft/TypeScript/pull/30568/commits/887b30682bf377e28826fbeafc5abdbebf5e5e77
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/30568/commits/de76d55ddd0274fee53b07753d6d2fdad8861fbc
de76d55https://github.com/microsoft/TypeScript/pull/30568/commits/de76d55ddd0274fee53b07753d6d2fdad8861fbc
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 24, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476001981
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 24, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476001986
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
de76d55https://github.com/microsoft/TypeScript/commit/de76d55ddd0274fee53b07753d6d2fdad8861fbc
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=25957
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 24, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476013248
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 24, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476013260
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
de76d55https://github.com/microsoft/TypeScript/commit/de76d55ddd0274fee53b07753d6d2fdad8861fbc
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=25964
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 25, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476202739
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
March 25, 2019 13:44https://github.com/microsoft/TypeScript/pull/30568#event-2226567447
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Mar 25, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476239057
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 25, 2019https://github.com/microsoft/TypeScript/pull/30568#issuecomment-476267239
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 25, 2019 https://github.com/microsoft/TypeScript/pull/30568#ref-issue-342259847
Function parameter type inference doesn't work with keyof of generic type #25759 https://github.com/microsoft/TypeScript/issues/25759
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Mar 26, 2019 https://github.com/microsoft/TypeScript/pull/30568#pullrequestreview-218642202
View reviewed changes https://github.com/microsoft/TypeScript/pull/30568/files/de76d55ddd0274fee53b07753d6d2fdad8861fbc
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/30568/files/de76d55ddd0274fee53b07753d6d2fdad8861fbc#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
Compute per-element contextual type in getSpreadArgumentTypehttps://github.com/microsoft/TypeScript/pull/30568/commits/fca46bb7061ff5f8c6875e589faf8a8b35ef720c
fca46bbhttps://github.com/microsoft/TypeScript/pull/30568/commits/fca46bb7061ff5f8c6875e589faf8a8b35ef720c
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Mar 26, 2019 https://github.com/microsoft/TypeScript/pull/30568#pullrequestreview-219141253
View reviewed changes https://github.com/microsoft/TypeScript/pull/30568/files/fca46bb7061ff5f8c6875e589faf8a8b35ef720c
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Mar 26, 2019 https://github.com/microsoft/TypeScript/pull/30568#pullrequestreview-219167570
View reviewed changes https://github.com/microsoft/TypeScript/pull/30568/files/fca46bb7061ff5f8c6875e589faf8a8b35ef720c
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
c03b7f5https://github.com/microsoft/TypeScript/commit/c03b7f525c5fa1f585be68328650e93a63d6ff06
Mar 28, 2019https://github.com/microsoft/TypeScript/pull/30568#event-2237392070
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
March 28, 2019 19:38https://github.com/microsoft/TypeScript/pull/30568#event-2237392361
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Mar 29, 2019 https://github.com/microsoft/TypeScript/pull/30568#ref-commit-ebf14df
https://github.com/sandersn
Update forhttps://github.com/DefinitelyTyped/DefinitelyTyped/commit/ebf14df136280befeb25a39da73d680aa0b34b2f
microsoft/TypeScript#30568https://github.com/microsoft/TypeScript/pull/30568
ebf14dfhttps://github.com/DefinitelyTyped/DefinitelyTyped/commit/ebf14df136280befeb25a39da73d680aa0b34b2f
alesnhttps://github.com/alesn
Apr 23, 2019 https://github.com/microsoft/TypeScript/pull/30568#ref-commit-30f7148
https://github.com/sandersn
https://github.com/alesn
Update forhttps://github.com/alesn/DefinitelyTyped/commit/30f7148b1325961851b5b54e94be115685c5d4b9
microsoft/TypeScript#30568https://github.com/microsoft/TypeScript/pull/30568
(https://github.com/alesn/DefinitelyTyped/commit/30f7148b1325961851b5b54e94be115685c5d4b9
DefinitelyTyped#34325https://github.com/DefinitelyTyped/DefinitelyTyped/pull/34325
)https://github.com/alesn/DefinitelyTyped/commit/30f7148b1325961851b5b54e94be115685c5d4b9
30f7148https://github.com/alesn/DefinitelyTyped/commit/30f7148b1325961851b5b54e94be115685c5d4b9
microsoft/TypeScript#30568https://github.com/microsoft/TypeScript/pull/30568
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Apr 30, 2019 https://github.com/microsoft/TypeScript/pull/30568#ref-commit-1e500e3
https://github.com/sandersn
Update stompjs testshttps://github.com/DefinitelyTyped/DefinitelyTyped/commit/1e500e32568428f52857d5d792fe0af97b236ec3
1e500e3https://github.com/DefinitelyTyped/DefinitelyTyped/commit/1e500e32568428f52857d5d792fe0af97b236ec3
microsoft/TypeScript#30568https://github.com/microsoft/TypeScript/pull/30568
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Apr 30, 2019 https://github.com/microsoft/TypeScript/pull/30568#ref-pullrequest-438797809
Update project urls DefinitelyTyped/DefinitelyTyped#35110 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/35110
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Sep 17, 2019 https://github.com/microsoft/TypeScript/pull/30568#ref-issue-494696439
Wrong Pick inference starting from version 3.6.0 #33468 https://github.com/microsoft/TypeScript/issues/33468
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 15, 2025 https://github.com/microsoft/TypeScript/pull/30568#ref-pullrequest-2855707311
Contextual typing for return expressions of functions with contextual signatures based on instantiated types #61185 https://github.com/microsoft/TypeScript/pull/61185
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/30568#event-20415926556
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F30568
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
https://github.com/microsoft/TypeScript/pull/30568/files/fca46bb7061ff5f8c6875e589faf8a8b35ef720c
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
https://github.com/microsoft/TypeScript/pull/30568/files/fca46bb7061ff5f8c6875e589faf8a8b35ef720c
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser) https://github.com/DanielRosenwasser
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/30568
https://github.com/ahejlsberg
https://github.com/typescript-bot
https://github.com/DanielRosenwasser
https://github.com/weswigham
https://github.com/RyanCavanaugh
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.