René's URL Explorer Experiment


Title: Feature Request: Add labels to tuple elements · Issue #28259 · microsoft/TypeScript · GitHub

Open Graph Title: Feature Request: Add labels to tuple elements · Issue #28259 · microsoft/TypeScript

X Title: Feature Request: Add labels to tuple elements · Issue #28259 · microsoft/TypeScript

Description: Search Terms tuple type elements members labels names naming Suggestion Currently tuple types are defined like so: // length, count type Segment = [number, number]; I often find myself having to add labels to the elements of the tuple as...

Open Graph Description: Search Terms tuple type elements members labels names naming Suggestion Currently tuple types are defined like so: // length, count type Segment = [number, number]; I often find myself having to ad...

X Description: Search Terms tuple type elements members labels names naming Suggestion Currently tuple types are defined like so: // length, count type Segment = [number, number]; I often find myself having to ad...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Add labels to tuple elements","articleBody":"## Search Terms\r\n\r\ntuple type elements members labels names naming\r\n\r\n## Suggestion\r\n\r\nCurrently tuple types are defined like so:\r\n\r\n```js\r\n// length, count\r\ntype Segment = [number, number];\r\n```\r\nI often find myself having to add labels to the elements of the tuple as a comment b/c the types themselves (number, string) don't adequately describe what the elements represent.\r\n\r\nIt would be nice if we could add labels to tuple elements using syntax similar to function parameters like so:\r\n\r\n```js\r\ntype Segment = [length: number, count: number];\r\n```\r\n\r\n## Use Cases\r\n\r\nCurrently we use comments to describe tuples, but adding this information directly to the AST can provide additional information for tooling.\r\n\r\n## Examples\r\n\r\nThis new syntax would also be useful in return types:\r\n```js\r\nfunction createSegment(/* ... */): [length: number, count: number] {\r\n  /* ... */\r\n}\r\n```\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n* [x] This wouldn't be a breaking change in existing TypeScript / JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. new expression-level syntax)\r\n\r\n","author":{"url":"https://github.com/brainkim","@type":"Person","name":"brainkim"},"datePublished":"2018-10-31T18:48:21Z","url":"https://github.com/microsoft/TypeScript/issues/28259"}

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:a29414e4-25c1-317b-997f-d919f1fd2bda
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id82FA:34CAB:57BED4:717B5F:6B00DD4B
html-safe-noncee6b56414e4279782b523ea75fb2fd664c1d5bdc5ddeb171d73ab53790d67f21d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkZBOjM0Q0FCOjU3QkVENDo3MTdCNUY6NkIwMERENEIiLCJ2aXNpdG9yX2lkIjoiOTEzNTA1NjcyNjM4MTM1NDMxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacea26ddd1c0cdac20a39ab033fe86d00c8c730cfa8a122e9b259384dc2218f284
hovercard-subject-tagissue:376110576
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/28259/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c79601cae70143584f684065cd7c4d467617427b707895d0c98608055306f249/microsoft/TypeScript/issues/28259
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c79601cae70143584f684065cd7c4d467617427b707895d0c98608055306f249/microsoft/TypeScript/issues/28259
og:image:altSearch Terms tuple type elements members labels names naming Suggestion Currently tuple types are defined like so: // length, count type Segment = [number, number]; I often find myself having to ad...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrainkim
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/28259#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F28259
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%2F28259
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/28259
Reloadhttps://github.com/microsoft/TypeScript/issues/28259
Reloadhttps://github.com/microsoft/TypeScript/issues/28259
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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28259
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28259
#38234https://github.com/microsoft/TypeScript/pull/38234
Feature Request: Add labels to tuple elementshttps://github.com/microsoft/TypeScript/issues/28259#top
#38234https://github.com/microsoft/TypeScript/pull/38234
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/brainkim
Brian Kim (brainkim)https://github.com/brainkim
on Oct 31, 2018https://github.com/microsoft/TypeScript/issues/28259#issue-376110576
Nexthttps://github.com/microsoft/TypeScript/issues/28259?timeline_page=1
Brian Kim (brainkim)https://github.com/brainkim
on Oct 31, 2018https://github.com/microsoft/TypeScript/issues/28259#event-1938781474
Brian Kim (brainkim)https://github.com/brainkim
on Oct 31, 2018https://github.com/microsoft/TypeScript/issues/28259#event-1938856736
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Oct 31, 2018https://github.com/microsoft/TypeScript/issues/28259#issuecomment-434817717
https://github.com/brainkim
Brian Kim (brainkim)https://github.com/brainkim
on Oct 31, 2018https://github.com/microsoft/TypeScript/issues/28259#issuecomment-434883837
the React team is proposing a new API called hookshttps://reactjs.org/docs/hooks-intro.html
Wesley Wigham (weswigham)https://github.com/weswigham
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 Oct 31, 2018https://github.com/microsoft/TypeScript/issues/28259#event-1939332484
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Nov 16, 2018https://github.com/microsoft/TypeScript/issues/28259#issuecomment-439317038
https://github.com/sindresorhus
Sindre Sorhus (sindresorhus)https://github.com/sindresorhus
on Jan 9, 2019https://github.com/microsoft/TypeScript/issues/28259#issuecomment-452912594
https://github.com/streamich
Va Da (streamich)https://github.com/streamich
on Nov 28, 2019https://github.com/microsoft/TypeScript/issues/28259#issuecomment-559556663
https://github.com/kourge
Wil Lee (kourge)https://github.com/kourge
on Dec 5, 2019https://github.com/microsoft/TypeScript/issues/28259#issuecomment-562313992
https://github.com/martinheidegger
Martin Heidegger (martinheidegger)https://github.com/martinheidegger
on Mar 25, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-603760513
https://github.com/ikokostya
ikokostyahttps://github.com/ikokostya
on Apr 29, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-620961645
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on May 1, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-622553692
https://api.gh-polls.com/poll/01E78YQN33JTMJKXR6BD2DMRTB/%5Bstart%3A%20number%2C%20length%3F%3A%20number%5D/vote
https://api.gh-polls.com/poll/01E78YQN33JTMJKXR6BD2DMRTB/%5Bfirst%3A%20number%2C%20second%3A%20number%3F%5D/vote
https://api.gh-polls.com/poll/01E78YRC9FJDNEXPRRC9M0EM3K/%5Bfirst%3A%20string%2C%20...rest%3A%20string%5B%5D/vote
https://api.gh-polls.com/poll/01E78YRC9FJDNEXPRRC9M0EM3K/%5Bfirst%3A%20string%2C%20rest%3A%20...string%5B%5D%5D/vote
https://github.com/brainkim
Brian Kim (brainkim)https://github.com/brainkim
on May 1, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-622556632
https://github.com/mohsen1
Mohsen Azimi (mohsen1)https://github.com/mohsen1
on May 1, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-622566607
https://github.com/remcohuijser
Remco Huijser (remcohuijser)https://github.com/remcohuijser
on Aug 10, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671165893
Code Scratcher (@vitaly-t)https://github.com/vitaly-t
https://github.com/vitaly-t
Code Scratcher (vitaly-t)https://github.com/vitaly-t
on Aug 10, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671185403
https://github.com/remcohuijser
Remco Huijser (remcohuijser)https://github.com/remcohuijser
on Aug 10, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671189504
Code Scratcher (@vitaly-t)https://github.com/vitaly-t
https://github.com/remcohuijser
Remco Huijser (remcohuijser)https://github.com/remcohuijser
on Aug 10, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671190544
https://github.com/mohsen1
Mohsen Azimi (mohsen1)https://github.com/mohsen1
on Aug 10, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671390056
Code Scratcher (@vitaly-t)https://github.com/vitaly-t
Remco Huijser (@remcohuijser)https://github.com/remcohuijser
https://github.com/vitaly-t
Code Scratcher (vitaly-t)https://github.com/vitaly-t
on Aug 10, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671483673
Mohsen Azimi (@mohsen1)https://github.com/mohsen1
Remco Huijser (@remcohuijser)https://github.com/remcohuijser
https://github.com/remcohuijser
Remco Huijser (remcohuijser)https://github.com/remcohuijser
on Aug 11, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671730929
Mohsen Azimi (@mohsen1)https://github.com/mohsen1
Code Scratcher (@vitaly-t)https://github.com/vitaly-t
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Aug 11, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671741399
https://github.com/remcohuijser
Remco Huijser (remcohuijser)https://github.com/remcohuijser
on Aug 11, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671751217
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/mohsen1
Mohsen Azimi (mohsen1)https://github.com/mohsen1
on Aug 11, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-671978095
https://github.com/camsjams
Cameron Manavian (camsjams)https://github.com/camsjams
on Sep 2, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-685287941
https://github.com/techieshark
Peter W (techieshark)https://github.com/techieshark
on Nov 8, 2020https://github.com/microsoft/TypeScript/issues/28259#issuecomment-723536827
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#labeled-tuple-elementshttps://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#labeled-tuple-elements
https://github.com/smashah
smashahhttps://github.com/smashah
on May 17, 2021https://github.com/microsoft/TypeScript/issues/28259#issuecomment-842195009
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 21, 2021https://github.com/microsoft/TypeScript/issues/28259#issuecomment-846078766
smashahhttps://github.com/smashah
https://github.com/Neme12
Ashley (Neme12)https://github.com/Neme12
on Mar 6, 2024https://github.com/microsoft/TypeScript/issues/28259#issuecomment-1979931794
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/28259
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28259
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%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.