| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d0723538-960e-b777-862f-e4465b373cb1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B156:29CED8:4B3E86:6AB8CE:6B047277 |
| html-safe-nonce | fbaa1058eb9696f52426717fdc8987ad04fb2997cd3decebe9b79ed90e636087 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU2OjI5Q0VEODo0QjNFODY6NkFCOENFOjZCMDQ3Mjc3IiwidmlzaXRvcl9pZCI6IjgyMTA4ODY4NDIxMTIwNDU2ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6f0f778493d3b76ab1123b15a67dfdca79a50a6a848f759237fedc8ff2596d94 |
| hovercard-subject-tag | pull_request:221957669 |
| 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/27695/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/69a4bafa404351d33fafc5592acf47cef17fd359c997057f59db82f9f05fca84/microsoft/TypeScript/pull/27695 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69a4bafa404351d33fafc5592acf47cef17fd359c997057f59db82f9f05fca84/microsoft/TypeScript/pull/27695 |
| og:image:alt | With this PR we permit non-unit types in union type discriminants. Specifically, we now consider a property of a union type to be a discriminant property if it has a union type containing at least ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahejlsberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| 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 | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/microsoft/TypeScript/pull/27695#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F27695 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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 |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F27695 |
| 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/27695 |
| Reload | https://github.com/microsoft/TypeScript/pull/27695 |
| Reload | https://github.com/microsoft/TypeScript/pull/27695 |
| microsoft | https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
| Code | https://github.com/microsoft/TypeScript |
| Issues5k (5k) | https://github.com/microsoft/TypeScript/issues |
| Pull requests319 (319) | https://github.com/microsoft/TypeScript/pulls |
| Actions | https://github.com/microsoft/TypeScript/actions |
| Projects | https://github.com/microsoft/TypeScript/projects |
| Wiki | https://github.com/microsoft/TypeScript/wiki |
| Security and quality | https://github.com/microsoft/TypeScript/security |
| Insights | https://github.com/microsoft/TypeScript/insights |
| https://github.com/microsoft/TypeScript |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| master | https://github.com/microsoft/TypeScript/tree/master |
| mixedDiscriminantTypes | https://github.com/microsoft/TypeScript/tree/mixedDiscriminantTypes |
| Conversation | https://github.com/microsoft/TypeScript/pull/27695 |
| Commits5 (5) | https://github.com/microsoft/TypeScript/pull/27695/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/27695/checks |
| Files changed | https://github.com/microsoft/TypeScript/pull/27695/files |
| Allow non-unit types in union discriminants | https://github.com/microsoft/TypeScript/pull/27695#top |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| master | https://github.com/microsoft/TypeScript/tree/master |
| mixedDiscriminantTypes | https://github.com/microsoft/TypeScript/tree/mixedDiscriminantTypes |
|
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| Oct 10, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issue-368886620 |
| #27631 | https://github.com/microsoft/TypeScript/pull/27631 |
| #24193 | https://github.com/microsoft/TypeScript/issues/24193 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| October 9, 2018 18:41 | https://github.com/microsoft/TypeScript/pull/27695#commits-pushed-d069875 |
|
| https://github.com/ahejlsberg |
| Allow discriminant property to contain some non-unit types | https://github.com/microsoft/TypeScript/pull/27695/commits/d0698751ce06814d740b22511c363d2a88a4a1bc |
| d069875 | https://github.com/microsoft/TypeScript/pull/27695/commits/d0698751ce06814d740b22511c363d2a88a4a1bc |
|
| https://github.com/ahejlsberg |
| Discriminant must include at least one unit type and no instantiable … | https://github.com/microsoft/TypeScript/pull/27695/commits/c110f57deb0c423c4e160ab5bce74c35187cb039 |
| c110f57 | https://github.com/microsoft/TypeScript/pull/27695/commits/c110f57deb0c423c4e160ab5bce74c35187cb039 |
|
| https://github.com/ahejlsberg |
| Accept new baselines | https://github.com/microsoft/TypeScript/pull/27695/commits/7737cd5f1fe07d47b00b1f5e189a73e060c78c19 |
| 7737cd5 | https://github.com/microsoft/TypeScript/pull/27695/commits/7737cd5f1fe07d47b00b1f5e189a73e060c78c19 |
|
| https://github.com/ahejlsberg |
| Add tests | https://github.com/microsoft/TypeScript/pull/27695/commits/22907bfb0701284f83fea13b9050c2c95ec63924 |
| 22907bf | https://github.com/microsoft/TypeScript/pull/27695/commits/22907bfb0701284f83fea13b9050c2c95ec63924 |
|
| https://github.com/ahejlsberg |
| Accept new baselines | https://github.com/microsoft/TypeScript/pull/27695/commits/6cdba6d3516a32e36458ef68e2f785a914ffd91f |
| 6cdba6d | https://github.com/microsoft/TypeScript/pull/27695/commits/6cdba6d3516a32e36458ef68e2f785a914ffd91f |
| 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 |
| October 10, 2018 22:53 | https://github.com/microsoft/TypeScript/pull/27695#event-1896834339 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Oct 10, 2018
| https://github.com/microsoft/TypeScript/pull/27695#ref-pullrequest-368207875 |
|
Fix #24193: Allow nullable discriminants
#27631
| https://github.com/microsoft/TypeScript/pull/27631 |
| https://github.com/jack-williams |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
| Oct 10, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-428764591 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/jack-williams |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
|
Oct 10, 2018
| https://github.com/microsoft/TypeScript/pull/27695#pullrequestreview-163605343 |
|
View reviewed changes
| https://github.com/microsoft/TypeScript/pull/27695/files/6cdba6d3516a32e36458ef68e2f785a914ffd91f |
| tests/cases/conformance/types/union/discriminatedUnionTypes2.ts | https://github.com/microsoft/TypeScript/pull/27695/files/6cdba6d3516a32e36458ef68e2f785a914ffd91f#diff-c9469c275ab6411eeed6a3bca9766f9229c65793f0c395b6308960e3c353eeea |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
| Oct 10, 2018 | https://github.com/microsoft/TypeScript/pull/27695#discussion_r224277243 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Oct 11, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-429160233 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/jack-williams |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
| Oct 12, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-429403244 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| Wesley Wigham (@weswigham) | https://github.com/weswigham |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| Oct 13, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-429546747 |
| Jack Williams (@jack-williams) | https://github.com/jack-williams |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/jack-williams |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
| Oct 15, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-429815083 |
| Anders Hejlsberg (@ahejlsberg) | https://github.com/ahejlsberg |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
|
Oct 15, 2018
| https://github.com/microsoft/TypeScript/pull/27695#ref-pullrequest-370268032 |
|
Fix circular mapped type instantiations for arrays and tuples
#27911
| https://github.com/microsoft/TypeScript/pull/27911 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Oct 15, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-429974822 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
|
Oct 15, 2018
| https://github.com/microsoft/TypeScript/pull/27695#pullrequestreview-164853634 |
|
View reviewed changes
| https://github.com/microsoft/TypeScript/pull/27695/files/6cdba6d3516a32e36458ef68e2f785a914ffd91f |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/microsoft/TypeScript/pull/27695#pullrequestreview-164853634 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| 9767522 | https://github.com/microsoft/TypeScript/commit/9767522ca0dfa5d76bbbd4a9ebce9bd69621beb7 |
| Oct 15, 2018 | https://github.com/microsoft/TypeScript/pull/27695#event-1905097178 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| October 15, 2018 20:10 | https://github.com/microsoft/TypeScript/pull/27695#event-1905097462 |
| https://github.com/jack-williams |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
|
Oct 25, 2018
| https://github.com/microsoft/TypeScript/pull/27695#ref-issue-374123150 |
|
Unable to discriminate union type because of "Property does not exist"
#28138
| https://github.com/microsoft/TypeScript/issues/28138 |
| https://github.com/bmingles |
| Brian Ingles (bmingles) | https://github.com/bmingles |
| Oct 30, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-434468492 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
| https://github.com/ksaldana1 |
| Kevin Saldaña (ksaldana1) | https://github.com/ksaldana1 |
| Nov 14, 2018 | https://github.com/microsoft/TypeScript/pull/27695#issuecomment-438502871 |
| Brian Ingles (@bmingles) | https://github.com/bmingles |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
|
Logical and loses narrowed types when testing for truthyness on union types
#29106
| https://github.com/microsoft/TypeScript/issues/29106 |
|
Fix discriminant property check
#29110
| https://github.com/microsoft/TypeScript/pull/29110 |
| https://github.com/dragomirtitian |
| Titian Cernicova-Dragomir (dragomirtitian) | https://github.com/dragomirtitian |
|
Mar 20, 2019
| https://github.com/microsoft/TypeScript/pull/27695#ref-issue-423205301 |
|
Type guard not work in union type of objects
#30506
| https://github.com/microsoft/TypeScript/issues/30506 |
| https://github.com/jack-williams |
| Jack Williams (jack-williams) | https://github.com/jack-williams |
|
Aug 5, 2019
| https://github.com/microsoft/TypeScript/pull/27695#ref-issue-475697864 |
|
Regression in discriminated unions when a common property may be boolean
#32657
| https://github.com/microsoft/TypeScript/issues/32657 |
| https://github.com/octogonz |
| Pete Gonzalez (octogonz) | https://github.com/octogonz |
|
Aug 26, 2021
| https://github.com/microsoft/TypeScript/pull/27695#ref-issue-467942096 |
|
Union not narrowed with typeof x.y as a discriminant
#32399
| https://github.com/microsoft/TypeScript/issues/32399 |
| https://github.com/richard-ling |
| Richard Ling (richard-ling) | https://github.com/richard-ling |
|
Mar 12, 2025
| https://github.com/microsoft/TypeScript/pull/27695#ref-issue-49962345 |
|
Consider property access a form of type guards
#1260
| https://github.com/microsoft/TypeScript/issues/1260 |
| https://github.com/microsoft |
| Microsoft (microsoft) | https://github.com/microsoft |
| Oct 21, 2025 | https://github.com/microsoft/TypeScript/pull/27695#event-20415820712 |
| https://github.com/typescript-bot |
| TypeScript Bot (typescript-bot) | https://github.com/typescript-bot |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| Oct 21, 2025 | https://github.com/microsoft/TypeScript/pull/27695#event-20415821356 |
| 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%2F27695 |
|
| https://github.com/weswigham |
|
Wesley Wigham (weswigham)
| https://github.com/weswigham |
|
| https://github.com/microsoft/TypeScript/pull/27695/files/6cdba6d3516a32e36458ef68e2f785a914ffd91f |
|
| https://github.com/DanielRosenwasser |
|
Daniel Rosenwasser (DanielRosenwasser)
| https://github.com/DanielRosenwasser |
|
| https://github.com/RyanCavanaugh |
|
Ryan Cavanaugh (RyanCavanaugh)
| https://github.com/RyanCavanaugh |
|
| https://github.com/jack-williams |
|
Jack Williams (jack-williams)
| https://github.com/jack-williams |
|
| https://github.com/microsoft/TypeScript/pull/27695/files/6cdba6d3516a32e36458ef68e2f785a914ffd91f |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
|
| https://github.com/ahejlsberg |
|
Anders Hejlsberg (ahejlsberg)
| https://github.com/ahejlsberg |
|
Allow to use null as discriminator for tagged union
| https://github.com/microsoft/TypeScript/issues/24193 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/27695 |
|
| https://github.com/ahejlsberg |
|
| https://github.com/jack-williams |
|
| https://github.com/weswigham |
|
| https://github.com/bmingles |
|
| https://github.com/ksaldana1 |
|
| 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 |