René's URL Explorer Experiment


Title: Fix inference of type arguments when source is 'awaited' by rbuckton · Pull Request #37540 · microsoft/TypeScript · GitHub

Open Graph Title: Fix inference of type arguments when source is 'awaited' by rbuckton · Pull Request #37540 · microsoft/TypeScript

X Title: Fix inference of type arguments when source is 'awaited' by rbuckton · Pull Request #37540 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Fix inference of type arguments when source is 'awaited' by rbuckton · Pull Request #37540 · microsoft/TypeScript

Open Graph Description: This changes inference behavior when inferring a type argument that is awaited: function f<T>(a: T): Promise<awaited T> { // will now infer `Promise<T>` instead of `Promise<...

X Description: This changes inference behavior when inferring a type argument that is awaited: function f&lt;T&gt;(a: T): Promise&lt;awaited T&gt; { // will now infer `Promise&lt;T&gt;...

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

X: @github

direct link

Domain: github.com

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:1c255935-292a-3d81-19a9-211465d77f43
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE17C:117213:AC8C2B:E6649D:6A531CE8
html-safe-nonce6d13d0eb7575d3787c1bb8b2aa1f444e0635f9b0bf96dac86f71f92281dc5e59
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTdDOjExNzIxMzpBQzhDMkI6RTY2NDlEOjZBNTMxQ0U4IiwidmlzaXRvcl9pZCI6IjcwOTU5NjQxMDcxNjIxOTcyMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b596a2d4c4b11125d856d13097e382f1d227939348124b981615870acee93e0
hovercard-subject-tagpull_request:392625086
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/37540/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0950c6d55af1fe17a2d36ddf29634ad8891ad1de973f6cb536849efa477b429e/microsoft/TypeScript/pull/37540
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0950c6d55af1fe17a2d36ddf29634ad8891ad1de973f6cb536849efa477b429e/microsoft/TypeScript/pull/37540
og:image:altThis changes inference behavior when inferring a type argument that is awaited: function f<T>(a: T): Promise<awaited T> { // will now infer `Promise<T>` instead of `Promise<...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerbuckton
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/37540#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F37540
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F37540
Sign up https://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/37540
Reloadhttps://github.com/microsoft/TypeScript/pull/37540
Reloadhttps://github.com/microsoft/TypeScript/pull/37540
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 31 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
rbucktonhttps://github.com/rbuckton
masterhttps://github.com/microsoft/TypeScript/tree/master
fix37526https://github.com/microsoft/TypeScript/tree/fix37526
Conversationhttps://github.com/microsoft/TypeScript/pull/37540
Commits4 (4)https://github.com/microsoft/TypeScript/pull/37540/commits
Checkshttps://github.com/microsoft/TypeScript/pull/37540/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/37540/files
Fix inference of type arguments when source is 'awaited'https://github.com/microsoft/TypeScript/pull/37540#top
rbucktonhttps://github.com/rbuckton
masterhttps://github.com/microsoft/TypeScript/tree/master
fix37526https://github.com/microsoft/TypeScript/tree/fix37526
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 23, 2020https://github.com/microsoft/TypeScript/pull/37540#issue-586501225
#37526https://github.com/microsoft/TypeScript/issues/37526
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
Fix inference of type arguments when source is 'awaited'https://github.com/microsoft/TypeScript/pull/37540/commits/cecab849dbe79e3fd525e1f7cd262f749b39980a
cecab84https://github.com/microsoft/TypeScript/pull/37540/commits/cecab849dbe79e3fd525e1f7cd262f749b39980a
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
ahejlsberghttps://github.com/ahejlsberg
andrewbranchhttps://github.com/andrewbranch
weswighamhttps://github.com/weswigham
March 23, 2020 20:34https://github.com/microsoft/TypeScript/pull/37540#event-3157023551
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
rbucktonhttps://github.com/rbuckton
Mar 23, 2020https://github.com/microsoft/TypeScript/pull/37540#event-3157023754
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
Mar 23, 2020https://github.com/microsoft/TypeScript/pull/37540#event-3157023801
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603387390
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603460323
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603474068
#37526https://github.com/microsoft/TypeScript/issues/37526
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603478551
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603486069
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603487564
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
ahejlsberghttps://github.com/ahejlsberg
March 24, 2020 15:56https://github.com/microsoft/TypeScript/pull/37540#commits-pushed-d37484e
https://github.com/ahejlsberg
Perform structural inference for type parameters that are awaitedhttps://github.com/microsoft/TypeScript/pull/37540/commits/d37484ee774f6a7f688e792e3ded9a94d4a79fcb
d37484ehttps://github.com/microsoft/TypeScript/pull/37540/commits/d37484ee774f6a7f688e792e3ded9a94d4a79fcb
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/37540/commits/70f92ff7751bad982f63cea0a3f8a8f9e32f1359
70f92ffhttps://github.com/microsoft/TypeScript/pull/37540/commits/70f92ff7751bad982f63cea0a3f8a8f9e32f1359
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603548743
@rbucktonhttps://github.com/rbuckton
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603550770
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603550797
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
@rbucktonhttps://github.com/rbuckton
70f92ffhttps://github.com/microsoft/TypeScript/commit/70f92ff7751bad982f63cea0a3f8a8f9e32f1359
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=69137
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603550798
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
@rbucktonhttps://github.com/rbuckton
70f92ffhttps://github.com/microsoft/TypeScript/commit/70f92ff7751bad982f63cea0a3f8a8f9e32f1359
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=69139
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603550799
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
@rbucktonhttps://github.com/rbuckton
70f92ffhttps://github.com/microsoft/TypeScript/commit/70f92ff7751bad982f63cea0a3f8a8f9e32f1359
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=69140
The results are in!https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603561715
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603550800
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
@rbucktonhttps://github.com/rbuckton
70f92ffhttps://github.com/microsoft/TypeScript/commit/70f92ff7751bad982f63cea0a3f8a8f9e32f1359
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=69138
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/ahejlsberg
Remove dead codehttps://github.com/microsoft/TypeScript/pull/37540/commits/360ac47b56e95d4b0fc40852b8849ee4ca9b3e41
360ac47https://github.com/microsoft/TypeScript/pull/37540/commits/360ac47b56e95d4b0fc40852b8849ee4ca9b3e41
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020 https://github.com/microsoft/TypeScript/pull/37540#ref-pullrequest-587344862
🤖 User test baselines have changed for fix37526 typescript-bot/TypeScript#9 https://github.com/typescript-bot/TypeScript/pull/9
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603560869
PR with the baseline diff from masterhttps://github.com/typescript-bot/TypeScript/pull/9
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603561715
@rbucktonhttps://github.com/rbuckton
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 25, 2020 https://github.com/microsoft/TypeScript/pull/37540#ref-issue-587279105
VS Code codebase compile errors with 3.9.0-dev.20200324 #37556 https://github.com/microsoft/TypeScript/issues/37556
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 25, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-603601383
https://github.com/typescript-bot/TypeScript/pull/9/files#diff-0e62d568d28b82cee9e66b2b8fafd290R7https://github.com/typescript-bot/TypeScript/pull/9/files#diff-0e62d568d28b82cee9e66b2b8fafd290R7
https://github.com/typescript-bot/TypeScript/pull/9/files#diff-976ec9fe54f7b841cd49ec069e0303a9L135https://github.com/typescript-bot/TypeScript/pull/9/files#diff-976ec9fe54f7b841cd49ec069e0303a9L135
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 25, 2020https://github.com/microsoft/TypeScript/pull/37540#issuecomment-604115684
#37610https://github.com/microsoft/TypeScript/pull/37610
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Mar 25, 2020https://github.com/microsoft/TypeScript/pull/37540#event-3165964559
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
Mar 26, 2020 https://github.com/microsoft/TypeScript/pull/37540#ref-issue-575020163
TypeScript 3.9 Iteration Plan #37198 https://github.com/microsoft/TypeScript/issues/37198
https://github.com/rbuckton
rbucktonhttps://github.com/rbuckton
Jul 9, 2024 https://github.com/microsoft/TypeScript/pull/37540#ref-issue-2385938258
Nested Promise not automatically unwrapped #59111 https://github.com/microsoft/TypeScript/issues/59111
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/37540#event-20416912430
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%2F37540
https://github.com/weswigham
weswigham https://github.com/weswigham
https://github.com/andrewbranch
andrewbranch https://github.com/andrewbranch
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
https://github.com/rbuckton
rbuckton https://github.com/rbuckton
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
Can't infer T from awaited T https://github.com/microsoft/TypeScript/issues/37526
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/37540
https://github.com/rbuckton
https://github.com/ahejlsberg
https://github.com/typescript-bot
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.