René's URL Explorer Experiment


Title: add compiler flag to enable granular inference outside var/let by KiaraGrouwstra · Pull Request #17785 · microsoft/TypeScript · GitHub

Open Graph Title: add compiler flag to enable granular inference outside var/let by KiaraGrouwstra · Pull Request #17785 · microsoft/TypeScript

X Title: add compiler flag to enable granular inference outside var/let by KiaraGrouwstra · Pull Request #17785 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - add compiler flag to enable granular inference outside var/let by KiaraGrouwstra · Pull Request #17785 · microsoft/TypeScript

Open Graph Description: This is a new compiler flag (idea: #16389 (comment)) to cancel type widening for objects / arrays (and even infer those as tuples) in const declarations as well as parameters: // @widenTypes: false...

X Description: This is a new compiler flag (idea: #16389 (comment)) to cancel type widening for objects / arrays (and even infer those as tuples) in const declarations as well as parameters: // @widenTypes: false...

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

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:dba64dd3-c4bd-9d38-7cc3-b8923577fa2b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8DEA:1201C:9425C2:C6F0E6:6B00E58E
html-safe-nonce0b84b577b3d8ec2d6aa93ad46466c76d9949cd5b30be84ccb399946630243bde
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REVBOjEyMDFDOjk0MjVDMjpDNkYwRTY6NkIwMEU1OEUiLCJ2aXNpdG9yX2lkIjoiNDU3Mjg5NDkxOTI4MjE4OTcxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac606ba18435b59c6e9d86b2b682ef583c224fc13db75388167c7401f1b72d3c71
hovercard-subject-tagpull_request:135656536
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/17785/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c556ac9fbb22422f494839e0355254c3b432f04e39f57a9dd6a17eae909e2e9d/microsoft/TypeScript/pull/17785
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c556ac9fbb22422f494839e0355254c3b432f04e39f57a9dd6a17eae909e2e9d/microsoft/TypeScript/pull/17785
og:image:altThis is a new compiler flag (idea: #16389 (comment)) to cancel type widening for objects / arrays (and even infer those as tuples) in const declarations as well as parameters: // @widenTypes: false...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKiaraGrouwstra
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/17785#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F17785
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%2Fpull%2F17785
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/17785
Reloadhttps://github.com/microsoft/TypeScript/pull/17785
Reloadhttps://github.com/microsoft/TypeScript/pull/17785
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
microsoft:masterhttps://github.com/microsoft/TypeScript/tree/master
KiaraGrouwstra:16656-granularConsthttps://github.com/KiaraGrouwstra/TypeScript/tree/16656-granularConst
Conversationhttps://github.com/microsoft/TypeScript/pull/17785
Commits2 (2)https://github.com/microsoft/TypeScript/pull/17785/commits
Checkshttps://github.com/microsoft/TypeScript/pull/17785/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/17785/files
add compiler flag to enable granular inference outside var/lethttps://github.com/microsoft/TypeScript/pull/17785#top
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
microsoft:masterhttps://github.com/microsoft/TypeScript/tree/master
KiaraGrouwstra:16656-granularConsthttps://github.com/KiaraGrouwstra/TypeScript/tree/16656-granularConst
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Aug 14, 2017https://github.com/microsoft/TypeScript/pull/17785#issue-250112787
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
#16389 (comment)https://github.com/microsoft/TypeScript/issues/16389#issuecomment-308651207
#3369https://github.com/microsoft/TypeScript/issues/3369
#6574https://github.com/microsoft/TypeScript/issues/6574
#7799https://github.com/microsoft/TypeScript/issues/7799
#8276https://github.com/microsoft/TypeScript/issues/8276
#9216https://github.com/microsoft/TypeScript/issues/9216
#9217https://github.com/microsoft/TypeScript/issues/9217
#10195https://github.com/microsoft/TypeScript/issues/10195
#12308https://github.com/microsoft/TypeScript/issues/12308
#12955https://github.com/microsoft/TypeScript/issues/12955
#15656https://github.com/microsoft/TypeScript/issues/15656
#16276https://github.com/microsoft/TypeScript/issues/16276
#16389https://github.com/microsoft/TypeScript/issues/16389
#16523https://github.com/microsoft/TypeScript/issues/16523
#16656https://github.com/microsoft/TypeScript/issues/16656
#17181https://github.com/microsoft/TypeScript/issues/17181
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/msftclas
Microsoft Contribution License Agreements (msftclas)https://github.com/msftclas
cla-already-signed https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-already-signed
Aug 14, 2017https://github.com/microsoft/TypeScript/pull/17785#event-1205279259
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Aug 14, 2017 https://github.com/microsoft/TypeScript/pull/17785#ref-issue-237318127
suggestion: explicit "tuple" syntax #16656 https://github.com/microsoft/TypeScript/issues/16656
https://github.com/ajafff
Klaus Meinhardt (ajafff)https://github.com/ajafff
Aug 14, 2017 https://github.com/microsoft/TypeScript/pull/17785#ref-pullrequest-249738688
Refine no-unnecessary-type-assertion rule to not flag necessary assertions palantir/tslint#3120 https://github.com/palantir/tslint/pull/3120
loosen number index check, fixes #15768 #17767 https://github.com/microsoft/TypeScript/pull/17767
Make tuples have known length #17765 https://github.com/microsoft/TypeScript/pull/17765
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
Aug 15, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-322415881
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Aug 15, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-322421558
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
force-pushedhttps://github.com/microsoft/TypeScript/compare/4bea1a9c104989d5d3d9f70d3b5d95141563650e..601f5f2fb0b4b9583f4e34f59f5570f83fe7395f
4bea1a9https://github.com/microsoft/TypeScript/commit/4bea1a9c104989d5d3d9f70d3b5d95141563650e
601f5f2https://github.com/microsoft/TypeScript/commit/601f5f2fb0b4b9583f4e34f59f5570f83fe7395f
Compare https://github.com/microsoft/TypeScript/compare/4bea1a9c104989d5d3d9f70d3b5d95141563650e..601f5f2fb0b4b9583f4e34f59f5570f83fe7395f
August 17, 2017 05:35https://github.com/microsoft/TypeScript/pull/17785#event-1209497029
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Aug 17, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-322973594
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
hugehttps://github.com/Microsoft/TypeScript/issues/3369#issuecomment-108618476
massivehttps://github.com/Microsoft/TypeScript/issues/9216#issuecomment-226590349
TS and all of its testshttps://github.com/tycho01/TypeScript/commit/30c9beb6f012c5990b215deefe81700b8c7e3599
Make tuples have known length #17765https://github.com/microsoft/TypeScript/pull/17765
#17765https://github.com/microsoft/TypeScript/pull/17765
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
add widenTypes flaghttps://github.com/microsoft/TypeScript/pull/17785/commits/c85ba7b73b9bf2a19d8371df46fdb45f6ce027cc
c85ba7bhttps://github.com/microsoft/TypeScript/pull/17785/commits/c85ba7b73b9bf2a19d8371df46fdb45f6ce027cc
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
force-pushedhttps://github.com/microsoft/TypeScript/compare/7b9bf2c6e6ef90a93360ff42bb7b66f0b936bd1d..c85ba7b73b9bf2a19d8371df46fdb45f6ce027cc
7b9bf2chttps://github.com/microsoft/TypeScript/commit/7b9bf2c6e6ef90a93360ff42bb7b66f0b936bd1d
c85ba7bhttps://github.com/microsoft/TypeScript/commit/c85ba7b73b9bf2a19d8371df46fdb45f6ce027cc
Compare https://github.com/microsoft/TypeScript/compare/7b9bf2c6e6ef90a93360ff42bb7b66f0b936bd1d..c85ba7b73b9bf2a19d8371df46fdb45f6ce027cc
August 17, 2017 06:26https://github.com/microsoft/TypeScript/pull/17785#event-1209538050
https://github.com/KiaraGrouwstra
update spechttps://github.com/microsoft/TypeScript/pull/17785/commits/a6dc21d6ae3f12f0d15ae7238a033de6d683e409
a6dc21dhttps://github.com/microsoft/TypeScript/pull/17785/commits/a6dc21d6ae3f12f0d15ae7238a033de6d683e409
fleshing out type operators (discussion) #16392 https://github.com/microsoft/TypeScript/issues/16392
Typing for object deep paths #12290 https://github.com/microsoft/TypeScript/issues/12290
Syntax for hinting literal type inference #10195 https://github.com/microsoft/TypeScript/issues/10195
Empty tuple type now meaningful (at least, in unions) #13126 https://github.com/microsoft/TypeScript/issues/13126
Support readonly type operator to allow correct definition of Object.freeze #10725 https://github.com/microsoft/TypeScript/issues/10725
Eliminate non-generic functions #17428 https://github.com/microsoft/TypeScript/issues/17428
https://github.com/msftgits
Microsoft GitHub User (msftgits)https://github.com/msftgits
cla-already-signed https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-already-signed
Sep 26, 2017https://github.com/microsoft/TypeScript/pull/17785#event-1265566312
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Microsoft Contribution License Agreements (msftclas)https://github.com/msftclas
Sep 27, 2017https://github.com/microsoft/TypeScript/pull/17785#event-1267167940
https://github.com/pelotom
Tom Crockett (pelotom)https://github.com/pelotom
Oct 19, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-338065263
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/JohnNilsson
John Nilsson (JohnNilsson)https://github.com/JohnNilsson
Oct 22, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-338505820
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Oct 22, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-338506224
John Nilsson (@JohnNilsson)https://github.com/JohnNilsson
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/pelotom
Tom Crockett (pelotom)https://github.com/pelotom
Oct 22, 2017https://github.com/microsoft/TypeScript/pull/17785#issuecomment-338506837
John Nilsson (@JohnNilsson)https://github.com/JohnNilsson
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Oct 25, 2017 https://github.com/microsoft/TypeScript/pull/17785#ref-issue-265421853
Design Meeting Notes, 10/13/2017 #19169 https://github.com/microsoft/TypeScript/issues/19169
https://github.com/gcnew
Marin Marinov (gcnew)https://github.com/gcnew
Nov 22, 2017 https://github.com/microsoft/TypeScript/pull/17785#ref-issue-275784571
Suggestion: a way to disable type widening in object literals #20195 https://github.com/microsoft/TypeScript/issues/20195
https://github.com/pelotom
Tom Crockett (pelotom)https://github.com/pelotom
Apr 12, 2018 https://github.com/microsoft/TypeScript/pull/17785#ref-issue-313551546
[typescript] withStyles() complains unless using as mui/material-ui#10995 https://github.com/mui/material-ui/issues/10995
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Apr 22, 2018 https://github.com/microsoft/TypeScript/pull/17785#ref-issue-99388722
Subtraction types #4183 https://github.com/microsoft/TypeScript/issues/4183
https://github.com/bcherny
Boris Cherny (bcherny)https://github.com/bcherny
Apr 22, 2018https://github.com/microsoft/TypeScript/pull/17785#issuecomment-383405378
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Apr 23, 2018https://github.com/microsoft/TypeScript/pull/17785#issuecomment-383639234
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Apr 23, 2018https://github.com/microsoft/TypeScript/pull/17785#event-1589608527
https://github.com/pelotom
Tom Crockett (pelotom)https://github.com/pelotom
Apr 23, 2018https://github.com/microsoft/TypeScript/pull/17785#issuecomment-383653168
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Apr 23, 2018https://github.com/microsoft/TypeScript/pull/17785#issuecomment-383666156
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
kiara (KiaraGrouwstra)https://github.com/KiaraGrouwstra
Apr 23, 2018https://github.com/microsoft/TypeScript/pull/17785#issuecomment-383691245
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Jul 31, 2018https://github.com/microsoft/TypeScript/pull/17785#event-1763315108
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%2F17785
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/17785
https://github.com/KiaraGrouwstra
https://github.com/dead-claudia
https://github.com/pelotom
https://github.com/JohnNilsson
https://github.com/bcherny
https://github.com/mhegazy
https://github.com/msftclas
https://github.com/msftgits
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.