René's URL Explorer Experiment


Title: Unions without discriminant properties do not perform excess property checking · Issue #20863 · microsoft/TypeScript · GitHub

Open Graph Title: Unions without discriminant properties do not perform excess property checking · Issue #20863 · microsoft/TypeScript

X Title: Unions without discriminant properties do not perform excess property checking · Issue #20863 · microsoft/TypeScript

Description: TypeScript Version: 2.7.0-dev.201xxxxx Code // An object to hold all the possible options type AllOptions = { startDate: Date endDate: Date author: number } // Any combination of startDate, endDate can be used type DateOptions = | Pick

Open Graph Description: TypeScript Version: 2.7.0-dev.201xxxxx Code // An object to hold all the possible options type AllOptions = { startDate: Date endDate: Date author: number } // Any combination of startDate, endDate...

X Description: TypeScript Version: 2.7.0-dev.201xxxxx Code // An object to hold all the possible options type AllOptions = { startDate: Date endDate: Date author: number } // Any combination of startDate, endDate...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/20863

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unions without discriminant properties do not perform excess property checking","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  2.7.0-dev.201xxxxx\r\n\r\n**Code**\r\n\r\n```ts\r\n// An object to hold all the possible options\r\ntype AllOptions = {\r\n    startDate: Date\r\n    endDate: Date\r\n    author: number\r\n}\r\n\r\n// Any combination of startDate, endDate can be used\r\ntype DateOptions =\r\n    | Pick\u003cAllOptions, 'startDate'>\r\n    | Pick\u003cAllOptions, 'endDate'>\r\n    | Pick\u003cAllOptions, 'startDate' | 'endDate'>\r\n\r\ntype AuthorOptions = Pick\u003cAllOptions, 'author'>\r\n\r\ntype AllowedOptions = DateOptions | AuthorOptions\r\n\r\nconst options: AllowedOptions = {\r\n    startDate: new Date(),\r\n    author: 1\r\n}\r\n\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nAn error that `options` cannot be coerced into type `AllowedOptions` because `startDate` and `author` cannot appear in the same object.\r\n\r\n**Actual behavior:**\r\n\r\nIt compiles fine.","author":{"url":"https://github.com/cazgp","@type":"Person","name":"cazgp"},"datePublished":"2017-12-22T13:37:59Z","url":"https://github.com/microsoft/TypeScript/issues/20863"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e6cfaaad-043b-62b3-5c05-a7052e7540f2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA02:296654:28191DD:357CAF2:6B01B365
html-safe-nonced2669743b088ecb49334a739b2fcd3ec058f4d97177098c320eb88eca2c48467
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTAyOjI5NjY1NDoyODE5MUREOjM1N0NBRjI6NkIwMUIzNjUiLCJ2aXNpdG9yX2lkIjoiNjM3NjE1NzEwNzY3NDI2NDQyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2af91828216e4a60b382c1f9e632313403b694d4455ca5e73da3d8aab4d2abd1
hovercard-subject-tagissue:284165409
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/20863/issue_layout
twitter:imagehttps://opengraph.githubassets.com/462c93be2bc19bb62bda6418ab6925eaaba129e8798156e6b9c1a5b83a9a24e0/microsoft/TypeScript/issues/20863
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/462c93be2bc19bb62bda6418ab6925eaaba129e8798156e6b9c1a5b83a9a24e0/microsoft/TypeScript/issues/20863
og:image:altTypeScript Version: 2.7.0-dev.201xxxxx Code // An object to hold all the possible options type AllOptions = { startDate: Date endDate: Date author: number } // Any combination of startDate, endDate...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecazgp
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/20863#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F20863
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%2Fissues%2F20863
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/20863
Reloadhttps://github.com/microsoft/TypeScript/issues/20863
Reloadhttps://github.com/microsoft/TypeScript/issues/20863
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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20863
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20863
Unions without discriminant properties do not perform excess property checkinghttps://github.com/microsoft/TypeScript/issues/20863#top
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/cazgp
cazgphttps://github.com/cazgp
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#issue-284165409
Nexthttps://github.com/microsoft/TypeScript/issues/20863?timeline_page=1
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#event-1400178111
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#issuecomment-353683368
#12745https://github.com/microsoft/TypeScript/issues/12745
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#event-1400180086
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#event-1400180106
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#issuecomment-353683678
#12745 (comment)https://github.com/microsoft/TypeScript/issues/12745#issuecomment-344759609
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 2.8https://github.com/microsoft/TypeScript/milestone/61
on Dec 22, 2017https://github.com/microsoft/TypeScript/issues/20863#event-1400180495
https://github.com/sylvanaar
Jon S Akhtar (sylvanaar)https://github.com/sylvanaar
on Dec 26, 2017https://github.com/microsoft/TypeScript/issues/20863#issuecomment-354004957
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jan 2, 2018https://github.com/microsoft/TypeScript/issues/20863#issuecomment-354894849
Jon S Akhtar (@sylvanaar)https://github.com/sylvanaar
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jan 2, 2018https://github.com/microsoft/TypeScript/issues/20863#event-1407043221
https://github.com/pelotom
Tom Crockett (pelotom)https://github.com/pelotom
on Feb 23, 2018https://github.com/microsoft/TypeScript/issues/20863#issuecomment-367890323
#22129https://github.com/microsoft/TypeScript/issues/22129
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.8https://github.com/microsoft/TypeScript/milestone/61
TypeScript 2.9https://github.com/microsoft/TypeScript/milestone/67
on Mar 9, 2018https://github.com/microsoft/TypeScript/issues/20863#event-1514289257
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
on Mar 19, 2018https://github.com/microsoft/TypeScript/issues/20863#issuecomment-374262437
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Mar 19, 2018https://github.com/microsoft/TypeScript/issues/20863#issuecomment-374267961
Tom Crockett (@pelotom)https://github.com/pelotom
Jack Williams (@jack-williams)https://github.com/jack-williams
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
on Mar 20, 2018https://github.com/microsoft/TypeScript/issues/20863#issuecomment-374525968
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Oct 8, 2019https://github.com/microsoft/TypeScript/issues/20863#issuecomment-539676594
SlurpTheohttps://github.com/SlurpTheo
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Oct 10, 2019https://github.com/microsoft/TypeScript/issues/20863#event-2704467671
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Oct 10, 2019https://github.com/microsoft/TypeScript/issues/20863#event-2704467891
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Oct 10, 2019https://github.com/microsoft/TypeScript/issues/20863#event-2704467962
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 10, 2019https://github.com/microsoft/TypeScript/issues/20863#issuecomment-540838200
#12936https://github.com/microsoft/TypeScript/issues/12936
https://github.com/SlurpTheo
SlurpTheohttps://github.com/SlurpTheo
on Oct 11, 2019https://github.com/microsoft/TypeScript/issues/20863#issuecomment-541121762
#12936https://github.com/microsoft/TypeScript/issues/12936
#12936https://github.com/microsoft/TypeScript/issues/12936
https://github.com/essenmitsosse
Marcus Blättermann (essenmitsosse)https://github.com/essenmitsosse
on Jul 15, 2020https://github.com/microsoft/TypeScript/issues/20863#issuecomment-658692413
problemhttps://github.com/microsoft/TypeScript/issues/20863#issuecomment-520303071
AnyhowStephttps://github.com/AnyhowStep
https://github.com/microsoft/TypeScript/issues/20863#issuecomment-520551758
https://github.com/mrvisser
Branden Visser (mrvisser)https://github.com/mrvisser
on Feb 27, 2021https://github.com/microsoft/TypeScript/issues/20863#issuecomment-787065785
https://github.com/Gruzchick
Alexander Pankin (Gruzchick)https://github.com/Gruzchick
on Oct 1, 2021https://github.com/microsoft/TypeScript/issues/20863#issuecomment-932105218
AnyhowStephttps://github.com/AnyhowStep
Titian Cernicova-Dragomir (@dragomirtitian)https://github.com/dragomirtitian
https://github.com/nebkat
Nebojša Cvetković (nebkat)https://github.com/nebkat
on Dec 11, 2022https://github.com/microsoft/TypeScript/issues/20863#issuecomment-1345440145
TS Playgroundhttps://www.typescriptlang.org/play?target=99&isolatedModules=true&exactOptionalPropertyTypes=true#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgBUymBTgG8AoOauGATzGAC44AidCCVuAHzYCMi3Pq0EAvVgG4KAXwoVQkWIhRosuOACEi5KjXqMWoodJpxBUAPwskAVwC2-NNLkLw0eMlQYcebWN0zA2YBTAlTGnFrODtHZ1l5RQ9aBjwAVSQECCQ4AF4CIhJ4Pm0oXi0w6Qp0WyRsGCyc1ABnGAAKWsaWDMaASnJXFvbKINSjDi5ZXukhtpH9MbYJ1gAaPWoLFgBGOAB6XbhAUHI4ABUAZTaAJgBmABYAVl6WAHl+ACtgergAGwRvTG+cHsmDocGy31BzUY2AQ6FBAGskBAAO45MBQCCMWAIYDNFZwTBIAAmcAA5BZSXAiRBcTEIPBQAhWioUowyYRiChSQA6KYzXHDdaskLGKCrIWbOA7fZHPkUWbzajBIwWcVmSVbfEyw4SsLbPYHQAy5HAAHIQOBoDFWOUKoXK0JitbqojbJ2RPVsLbcGWAZXJThdLjdLk9Tqkya0oMgAOaUpl0+CYZrNBBRpCYfjfPAwc3BMmxJxQHk2gVzO2LUVq91QV26sSug1wY1mi1QK2WIW1X6tYBE-Xa-1XO6PF7vT7wX7-QHA0HgyHQ2EIpGouDozFoBq4-GEkmkztM1BEynU2lIhkgfcs3OknrZIsyaZAA
https://github.com/htunnicliff
Hunter Tunnicliff (htunnicliff)https://github.com/htunnicliff
on Oct 17, 2023https://github.com/microsoft/TypeScript/issues/20863#issuecomment-1766705596
https://github.com/RobertSandiford
RobertSandifordhttps://github.com/RobertSandiford
on Aug 28, 2024https://github.com/microsoft/TypeScript/issues/20863#issuecomment-2315671851
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
Jon S Akhtar (@sylvanaar)https://github.com/sylvanaar
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
#42384https://github.com/microsoft/TypeScript/issues/42384
https://github.com/davidbarratt
David Barratt (davidbarratt)https://github.com/davidbarratt
on Sep 2, 2024https://github.com/microsoft/TypeScript/issues/20863#issuecomment-2323593738
#59819https://github.com/microsoft/TypeScript/issues/59819
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/20863
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20863
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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.