René's URL Explorer Experiment


Title: Fixed contextual async return type with unions in context that contain a mix of promise and non-promise types by Andarist · Pull Request #47683 · microsoft/TypeScript · GitHub

Open Graph Title: Fixed contextual async return type with unions in context that contain a mix of promise and non-promise types by Andarist · Pull Request #47683 · microsoft/TypeScript

X Title: Fixed contextual async return type with unions in context that contain a mix of promise and non-promise types by Andarist · Pull Request #47683 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Fixed contextual async return type with unions in context that contain a mix of promise and non-promise types by Andarist · Pull Request #47683 · microsoft/TypeScript

Open Graph Description: Please verify that: There is an associated issue in the Backlog milestone (required) Code is up-to-date with the main branch You've successfully run gulp runtests locally There are new or ...

X Description: Please verify that: There is an associated issue in the Backlog milestone (required) Code is up-to-date with the main branch You've successfully run gulp runtests locally There are new...

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

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:d3f9d2ee-83ac-c409-c6f9-cbf77312b583
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC236:146438:461022:5FBFF4:6A626ED6
html-safe-nonce645dd8c2871dbe3c16527171592d9dd3806a6842e6bc03161eea6337b5572ff8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjM2OjE0NjQzODo0NjEwMjI6NUZCRkY0OjZBNjI2RUQ2IiwidmlzaXRvcl9pZCI6IjMyMTkyNDAzNjk5NjUzOTU2NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2dadfe9ee784c5b7c530ba5aa0046e228f7dfa235818954fdbda8ac5bae78b6c
hovercard-subject-tagpull_request:837003276
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/47683/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d6a28c323a5c56bad584c5c310b0415a67f44836c18e68dca157128a2561bd12/microsoft/TypeScript/pull/47683
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d6a28c323a5c56bad584c5c310b0415a67f44836c18e68dca157128a2561bd12/microsoft/TypeScript/pull/47683
og:image:altPlease verify that: There is an associated issue in the Backlog milestone (required) Code is up-to-date with the main branch You've successfully run gulp runtests locally There are new or ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
None19769ef9d383a84eeab48bb9b309078c20f4532b73eae2f9713b18406513e0ad
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
release76dc6b11f13eaeec1329217c9f16c262ade27a1e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/47683#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47683
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2F47683
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/47683
Reloadhttps://github.com/microsoft/TypeScript/pull/47683
Reloadhttps://github.com/microsoft/TypeScript/pull/47683
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
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 21 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
Andaristhttps://github.com/Andarist
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:contextual-async-return-type-with-unionshttps://github.com/Andarist/TypeScript/tree/contextual-async-return-type-with-unions
Conversationhttps://github.com/microsoft/TypeScript/pull/47683
Commits4 (4)https://github.com/microsoft/TypeScript/pull/47683/commits
Checkshttps://github.com/microsoft/TypeScript/pull/47683/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/47683/files
Fixed contextual async return type with unions in context that contain a mix of promise and non-promise typeshttps://github.com/microsoft/TypeScript/pull/47683#top
Andaristhttps://github.com/Andarist
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:contextual-async-return-type-with-unionshttps://github.com/Andarist/TypeScript/tree/contextual-async-return-type-with-unions
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 1, 2022https://github.com/microsoft/TypeScript/pull/47683#issue-1120427353
#47682https://github.com/microsoft/TypeScript/issues/47682
first commithttps://github.com/microsoft/TypeScript/commit/d25cfb58d1561f32cae498a9717c4e6e0d4bdc1d
second commithttps://github.com/microsoft/TypeScript/commit/9d55f13e6eed0d3c4a457f70b36df55f6126ed77
third commithttps://github.com/microsoft/TypeScript/commit/0ea685112c779ea8b356339389de3814d635b48a
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Feb 1, 2022https://github.com/microsoft/TypeScript/pull/47683#event-5986753514
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 1, 2022 https://github.com/microsoft/TypeScript/pull/47683#pullrequestreview-868871276
View reviewed changes https://github.com/microsoft/TypeScript/pull/47683/files
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/47683/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Andaristhttps://github.com/Andarist
Feb 1, 2022https://github.com/microsoft/TypeScript/pull/47683#discussion_r796412608
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 1, 2022 https://github.com/microsoft/TypeScript/pull/47683#ref-issue-1120422969
Contextual generic return type of an async function includes union members from the context that it shouldn't #47682 https://github.com/microsoft/TypeScript/issues/47682
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
rbucktonhttps://github.com/rbuckton
February 1, 2022 18:51https://github.com/microsoft/TypeScript/pull/47683#event-5990511189
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
rbucktonhttps://github.com/rbuckton
Feb 1, 2022https://github.com/microsoft/TypeScript/pull/47683#event-5990511516
https://github.com/sandersn
sandersnhttps://github.com/sandersn
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
Feb 11, 2022https://github.com/microsoft/TypeScript/pull/47683#event-6047209987
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Feb 11, 2022https://github.com/microsoft/TypeScript/pull/47683#event-6047210209
https://github.com/sandersn
sandersnhttps://github.com/sandersn
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Feb 11, 2022https://github.com/microsoft/TypeScript/pull/47683#event-6047210374
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
Feb 11, 2022https://github.com/microsoft/TypeScript/pull/47683#event-6047210752
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Apr 4, 2022https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1087711266
@rbucktonhttps://github.com/rbuckton
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Azarattum
Azarattumhttps://github.com/Azarattum
May 3, 2022https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1115957107
@Andaristhttps://github.com/Andarist
#48927https://github.com/microsoft/TypeScript/issues/48927
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Andarist
Andaristhttps://github.com/Andarist
May 3, 2022https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1116431929
@Azarattumhttps://github.com/Azarattum
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Jul 3, 2022https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1173035360
@rbucktonhttps://github.com/rbuckton
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
Andaristhttps://github.com/Andarist
July 5, 2022 10:16https://github.com/microsoft/TypeScript/pull/47683#commits-pushed-00b1a77
https://github.com/Andarist
Add a test case for contextually typed return types of an async funct…https://github.com/microsoft/TypeScript/pull/47683/commits/00b1a77450f5be475ba129d90ce0e28307a091ce
00b1a77https://github.com/microsoft/TypeScript/pull/47683/commits/00b1a77450f5be475ba129d90ce0e28307a091ce
https://github.com/Andarist
Fixed the issue with contextually typed return type of an async funct…https://github.com/microsoft/TypeScript/pull/47683/commits/dd38c4dd369e6812c725c1d82c367da86ff6268d
dd38c4dhttps://github.com/microsoft/TypeScript/pull/47683/commits/dd38c4dd369e6812c725c1d82c367da86ff6268d
https://github.com/Andarist
Refactor conditional logic to avoid fallthrough and to make the contr…https://github.com/microsoft/TypeScript/pull/47683/commits/f4b2ec7625392212a353272636e11d53becc4a60
f4b2ec7https://github.com/microsoft/TypeScript/pull/47683/commits/f4b2ec7625392212a353272636e11d53becc4a60
https://github.com/Andarist
Andaristhttps://github.com/Andarist
force-pushedhttps://github.com/microsoft/TypeScript/compare/0ea685112c779ea8b356339389de3814d635b48a..f4b2ec7625392212a353272636e11d53becc4a60
0ea6851https://github.com/microsoft/TypeScript/commit/0ea685112c779ea8b356339389de3814d635b48a
f4b2ec7https://github.com/microsoft/TypeScript/commit/f4b2ec7625392212a353272636e11d53becc4a60
Compare https://github.com/microsoft/TypeScript/compare/0ea685112c779ea8b356339389de3814d635b48a..f4b2ec7625392212a353272636e11d53becc4a60
July 5, 2022 08:17https://github.com/microsoft/TypeScript/pull/47683#event-6932317235
https://github.com/Andarist
Add additional test case from the issue commenthttps://github.com/microsoft/TypeScript/pull/47683/commits/ce8c01201397be12642a7f1deabe320cf2afc5f0
ce8c012https://github.com/microsoft/TypeScript/pull/47683/commits/ce8c01201397be12642a7f1deabe320cf2afc5f0
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Oct 17, 2022 https://github.com/microsoft/TypeScript/pull/47683#ref-pullrequest-1411126600
Filter possible contextual return types from unions for async functions and generators #51196 https://github.com/microsoft/TypeScript/pull/51196
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Oct 27, 2022https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1294217591
#51196https://github.com/microsoft/TypeScript/pull/51196
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Oct 27, 2022https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1294221677
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Oct 27, 2022https://github.com/microsoft/TypeScript/pull/47683#event-7686504661
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/47683#event-20417492777
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%2F47683
https://github.com/rbuckton
rbuckton https://github.com/rbuckton
https://github.com/rbuckton
rbuckton https://github.com/rbuckton
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Contextual generic return type of an async function includes union members from the context that it shouldn't https://github.com/microsoft/TypeScript/issues/47682
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47683
https://github.com/Andarist
https://github.com/Azarattum
https://github.com/sandersn
https://github.com/rbuckton
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.