René's URL Explorer Experiment


Title: All Optional Object Interface Converts to any · Issue #7485 · microsoft/TypeScript · GitHub

Open Graph Title: All Optional Object Interface Converts to any · Issue #7485 · microsoft/TypeScript

X Title: All Optional Object Interface Converts to any · Issue #7485 · microsoft/TypeScript

Description: I couldn't find a relevant issue, but this does seem rather fundamental and against the principle of: Statically identify constructs that are likely to be errors. TypeScript Version: 1.8.7 Code interface Optional { foo?: string; } functi...

Open Graph Description: I couldn't find a relevant issue, but this does seem rather fundamental and against the principle of: Statically identify constructs that are likely to be errors. TypeScript Version: 1.8.7 Code int...

X Description: I couldn't find a relevant issue, but this does seem rather fundamental and against the principle of: Statically identify constructs that are likely to be errors. TypeScript Version: 1.8.7 Code...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"All Optional Object Interface Converts to any","articleBody":"I couldn't find a relevant issue, but this does seem rather fundamental and against the principle of:\n\n> 1. Statically identify constructs that are likely to be errors.\n\n**TypeScript Version:** \n\n1.8.7\n\n[**Code**](http://www.typescriptlang.org/Playground#src=interface%20Optional%20%7B%0A%09foo%3F%3A%20string%3B%0A%7D%0A%0Afunction%20foo%28o%3A%20Optional%29%3A%20void%20%7B%7D%0A%0Afoo%28'bar'%29%3B%0Afoo%281%29%3B%0Afoo%28%7B%20bar%3A%20'baz'%20%7D%29%3B%0A)\n\n``` ts\ninterface Optional {\n    foo?: string;\n}\n\nfunction foo(o: Optional): void {}\n\nfoo('bar'); // should throw\nfoo(1); // should throw\nfoo({ bar: 'baz' }); // should (and does) throw\n```\n\n**Expected behavior:**\n\nExpected behaviour is that you should be able to type guard against other non-objects and only accept Objects with no properties or declared properties.\n\n**Actual behavior:** \n\nPassing anything other than an object literal that contains extra properties is acceptable.\n","author":{"url":"https://github.com/kitsonk","@type":"Person","name":"kitsonk"},"datePublished":"2016-03-11T20:34:50Z","url":"https://github.com/microsoft/TypeScript/issues/7485"}

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:e7fc3459-ac01-7b64-90c9-44121b4a891c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0CC:F3247:74D32:A1AAD:6B00A500
html-safe-nonce1932f1fdcaac8980f5d80bfa1cc60aaa3b47893564118080eac4b9e2db840223
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMENDOkYzMjQ3Ojc0RDMyOkExQUFEOjZCMDBBNTAwIiwidmlzaXRvcl9pZCI6IjM4MTAwNjEyOTM4OTM3NTYxNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac06a0a31fd89b88cfb437986f0e3155f7dcee6d51dd342b1c6af6bcc468ff20d6
hovercard-subject-tagissue:140285155
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/7485/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ceda24ff3eeeb7b9c4cb182630e22855faa33ddf2c384c987ad231ee4e5426d2/microsoft/TypeScript/issues/7485
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ceda24ff3eeeb7b9c4cb182630e22855faa33ddf2c384c987ad231ee4e5426d2/microsoft/TypeScript/issues/7485
og:image:altI couldn't find a relevant issue, but this does seem rather fundamental and against the principle of: Statically identify constructs that are likely to be errors. TypeScript Version: 1.8.7 Code int...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekitsonk
hostnamegithub.com
expected-hostnamegithub.com
None455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a
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
release2f575159976167242d488c0b062eb355c4e198b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/7485#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F7485
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%2F7485
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/7485
Reloadhttps://github.com/microsoft/TypeScript/issues/7485
Reloadhttps://github.com/microsoft/TypeScript/issues/7485
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)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/7485
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7485
#16047https://github.com/microsoft/TypeScript/pull/16047
All Optional Object Interface Converts to anyhttps://github.com/microsoft/TypeScript/issues/7485#top
#16047https://github.com/microsoft/TypeScript/pull/16047
https://github.com/sandersn
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.4https://github.com/microsoft/TypeScript/milestone/43
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Mar 11, 2016https://github.com/microsoft/TypeScript/issues/7485#issue-140285155
Codehttp://www.typescriptlang.org/Playground#src=interface%20Optional%20%7B%0A%09foo%3F%3A%20string%3B%0A%7D%0A%0Afunction%20foo%28o%3A%20Optional%29%3A%20void%20%7B%7D%0A%0Afoo%28'bar'%29%3B%0Afoo%281%29%3B%0Afoo%28%7B%20bar%3A%20'baz'%20%7D%29%3B%0A
Nexthttps://github.com/microsoft/TypeScript/issues/7485?timeline_page=1
https://github.com/danquirk
Dan Quirk (danquirk)https://github.com/danquirk
on Mar 11, 2016https://github.com/microsoft/TypeScript/issues/7485#issuecomment-195541741
#3842https://github.com/microsoft/TypeScript/pull/3842
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Mar 28, 2016https://github.com/microsoft/TypeScript/issues/7485#event-605931973
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Accepting PRshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Accepting%20PRs%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Apr 13, 2016https://github.com/microsoft/TypeScript/issues/7485#event-626067551
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 13, 2016https://github.com/microsoft/TypeScript/issues/7485#event-626067608
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 13, 2016https://github.com/microsoft/TypeScript/issues/7485#issuecomment-209535652
#3842https://github.com/microsoft/TypeScript/pull/3842
https://github.com/JabX
Damien Frikha (JabX)https://github.com/JabX
on Apr 15, 2016https://github.com/microsoft/TypeScript/issues/7485#issuecomment-210355496
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 20, 2016https://github.com/microsoft/TypeScript/issues/7485#event-635152396
https://github.com/JabX
Damien Frikha (JabX)https://github.com/JabX
on Apr 29, 2016https://github.com/microsoft/TypeScript/issues/7485#issuecomment-215700042
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Apr 29, 2016https://github.com/microsoft/TypeScript/issues/7485#issuecomment-215707011
https://github.com/DomenicD
Domenic Donato (DomenicD)https://github.com/DomenicD
on Oct 7, 2016https://github.com/microsoft/TypeScript/issues/7485#issuecomment-252336670
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on Feb 7, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-278057893
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Feb 7, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-278099814
https://github.com/bcherny
Boris Cherny (bcherny)https://github.com/bcherny
on Apr 20, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-295826286
Bijou Trouvaille (@bijoutrouvaille)https://github.com/bijoutrouvaille
https://github.com/3n-mb
3n-mbhttps://github.com/3n-mb
on Apr 30, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-298248358
https://github.com/bcherny
Boris Cherny (bcherny)https://github.com/bcherny
on Apr 30, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-298248530
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on May 1, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-298291429
3n-mbhttps://github.com/3n-mb
https://github.com/rcollette
Richard Collette (rcollette)https://github.com/rcollette
on May 18, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-302401148
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on May 18, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-302403874
https://github.com/rcollette
Richard Collette (rcollette)https://github.com/rcollette
on May 24, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-303608244
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Accepting PRshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Accepting%20PRs%22
on May 24, 2017https://github.com/microsoft/TypeScript/issues/7485#event-1094996223
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on May 24, 2017https://github.com/microsoft/TypeScript/issues/7485#event-1094996302
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on May 24, 2017https://github.com/microsoft/TypeScript/issues/7485#issuecomment-303643577
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on May 30, 2017https://github.com/microsoft/TypeScript/issues/7485#event-1102635758
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#16047https://github.com/microsoft/TypeScript/pull/16047
on Jun 2, 2017https://github.com/microsoft/TypeScript/issues/7485#event-1108425230
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.4https://github.com/microsoft/TypeScript/milestone/43
on Jun 3, 2017https://github.com/microsoft/TypeScript/issues/7485#event-1108930816
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/7485#event-1689642794
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/7485
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7485
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.4https://github.com/microsoft/TypeScript/milestone/43
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.