| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d3f9d2ee-83ac-c409-c6f9-cbf77312b583 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C236:146438:461022:5FBFF4:6A626ED6 |
| html-safe-nonce | 645dd8c2871dbe3c16527171592d9dd3806a6842e6bc03161eea6337b5572ff8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjM2OjE0NjQzODo0NjEwMjI6NUZCRkY0OjZBNjI2RUQ2IiwidmlzaXRvcl9pZCI6IjMyMTkyNDAzNjk5NjUzOTU2NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2dadfe9ee784c5b7c530ba5aa0046e228f7dfa235818954fdbda8ac5bae78b6c |
| hovercard-subject-tag | pull_request:837003276 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/47683/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d6a28c323a5c56bad584c5c310b0415a67f44836c18e68dca157128a2561bd12/microsoft/TypeScript/pull/47683 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6a28c323a5c56bad584c5c310b0415a67f44836c18e68dca157128a2561bd12/microsoft/TypeScript/pull/47683 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andarist |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19769ef9d383a84eeab48bb9b309078c20f4532b73eae2f9713b18406513e0ad |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 76dc6b11f13eaeec1329217c9f16c262ade27a1e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/microsoft/TypeScript/pull/47683 |
| Reload | https://github.com/microsoft/TypeScript/pull/47683 |
| Reload | https://github.com/microsoft/TypeScript/pull/47683 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
|
microsoft
| https://github.com/microsoft |
| TypeScript | https://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 |
| Andarist | https://github.com/Andarist |
| microsoft:main | https://github.com/microsoft/TypeScript/tree/main |
| Andarist:contextual-async-return-type-with-unions | https://github.com/Andarist/TypeScript/tree/contextual-async-return-type-with-unions |
| Conversation | https://github.com/microsoft/TypeScript/pull/47683 |
| Commits4 (4) | https://github.com/microsoft/TypeScript/pull/47683/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/47683/checks |
| Files changed | https://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 types | https://github.com/microsoft/TypeScript/pull/47683#top |
| Andarist | https://github.com/Andarist |
| microsoft:main | https://github.com/microsoft/TypeScript/tree/main |
| Andarist:contextual-async-return-type-with-unions | https://github.com/Andarist/TypeScript/tree/contextual-async-return-type-with-unions |
|
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| Feb 1, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issue-1120427353 |
| #47682 | https://github.com/microsoft/TypeScript/issues/47682 |
| first commit | https://github.com/microsoft/TypeScript/commit/d25cfb58d1561f32cae498a9717c4e6e0d4bdc1d |
| second commit | https://github.com/microsoft/TypeScript/commit/9d55f13e6eed0d3c4a457f70b36df55f6126ed77 |
| third commit | https://github.com/microsoft/TypeScript/commit/0ea685112c779ea8b356339389de3814d635b48a |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
|
For Uncommitted Bug
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22 |
| Feb 1, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-5986753514 |
| https://github.com/Andarist |
| Andarist | https://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.ts | https://github.com/microsoft/TypeScript/pull/47683/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8 |
| Andarist | https://github.com/Andarist |
| Feb 1, 2022 | https://github.com/microsoft/TypeScript/pull/47683#discussion_r796412608 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/Andarist |
| Andarist | https://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 |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| rbuckton | https://github.com/rbuckton |
| February 1, 2022 18:51 | https://github.com/microsoft/TypeScript/pull/47683#event-5990511189 |
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| rbuckton | https://github.com/rbuckton |
| Feb 1, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-5990511516 |
| https://github.com/sandersn |
| sandersn | https://github.com/sandersn |
|
For Backlog Bug
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22 |
| Feb 11, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-6047209987 |
| https://github.com/typescript-bot |
| typescript-bot | https://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, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-6047210209 |
| https://github.com/sandersn |
| sandersn | https://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, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-6047210374 |
| https://github.com/typescript-bot |
| typescript-bot | https://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, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-6047210752 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| Apr 4, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1087711266 |
| @rbuckton | https://github.com/rbuckton |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/Azarattum |
| Azarattum | https://github.com/Azarattum |
| May 3, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1115957107 |
| @Andarist | https://github.com/Andarist |
| #48927 | https://github.com/microsoft/TypeScript/issues/48927 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| May 3, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1116431929 |
| @Azarattum | https://github.com/Azarattum |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| Jul 3, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1173035360 |
| @rbuckton | https://github.com/rbuckton |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| Andarist | https://github.com/Andarist |
| July 5, 2022 10:16 | https://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 |
| 00b1a77 | https://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 |
| dd38c4d | https://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 |
| f4b2ec7 | https://github.com/microsoft/TypeScript/pull/47683/commits/f4b2ec7625392212a353272636e11d53becc4a60 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| force-pushed | https://github.com/microsoft/TypeScript/compare/0ea685112c779ea8b356339389de3814d635b48a..f4b2ec7625392212a353272636e11d53becc4a60 |
| 0ea6851 | https://github.com/microsoft/TypeScript/commit/0ea685112c779ea8b356339389de3814d635b48a |
| f4b2ec7 | https://github.com/microsoft/TypeScript/commit/f4b2ec7625392212a353272636e11d53becc4a60 |
|
Compare
| https://github.com/microsoft/TypeScript/compare/0ea685112c779ea8b356339389de3814d635b48a..f4b2ec7625392212a353272636e11d53becc4a60 |
| July 5, 2022 08:17 | https://github.com/microsoft/TypeScript/pull/47683#event-6932317235 |
|
| https://github.com/Andarist |
| Add additional test case from the issue comment | https://github.com/microsoft/TypeScript/pull/47683/commits/ce8c01201397be12642a7f1deabe320cf2afc5f0 |
| ce8c012 | https://github.com/microsoft/TypeScript/pull/47683/commits/ce8c01201397be12642a7f1deabe320cf2afc5f0 |
| https://github.com/Andarist |
| Andarist | https://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 |
| sandersn | https://github.com/sandersn |
| Oct 27, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1294217591 |
| #51196 | https://github.com/microsoft/TypeScript/pull/51196 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| Oct 27, 2022 | https://github.com/microsoft/TypeScript/pull/47683#issuecomment-1294221677 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47683 |
| https://github.com/Andarist |
| Andarist | https://github.com/Andarist |
| Oct 27, 2022 | https://github.com/microsoft/TypeScript/pull/47683#event-7686504661 |
| https://github.com/microsoft |
| microsoft | https://github.com/microsoft |
| Oct 22, 2025 | https://github.com/microsoft/TypeScript/pull/47683#event-20417492777 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://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 page | https://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 |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |