René's URL Explorer Experiment


Title: Numeric Range Types (Feature Update) · Issue #54925 · microsoft/TypeScript · GitHub

Open Graph Title: Numeric Range Types (Feature Update) · Issue #54925 · microsoft/TypeScript

X Title: Numeric Range Types (Feature Update) · Issue #54925 · microsoft/TypeScript

Description: Feature Update: Numeric Ranges This is a Feature Update for #15480. What's the Proposal? The general idea is that you'd be able to write a type which represents a range of numbers, e.g. 0..15 to represent an integer in the range [0, 15],...

Open Graph Description: Feature Update: Numeric Ranges This is a Feature Update for #15480. What's the Proposal? The general idea is that you'd be able to write a type which represents a range of numbers, e.g. 0..15 to re...

X Description: Feature Update: Numeric Ranges This is a Feature Update for #15480. What's the Proposal? The general idea is that you'd be able to write a type which represents a range of numbers, e.g. 0.....

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Numeric Range Types (Feature Update)","articleBody":"# Feature Update: Numeric Ranges\r\n\r\nThis is a [Feature Update](https://github.com/microsoft/TypeScript/issues/54923) for #15480.\r\n\r\n## What's the Proposal?\r\n\r\nThe general idea is that you'd be able to write a type which represents a range of numbers, e.g. `0..15` to represent an integer in the range `[0, 15]`, or `0...1` to represent a real number in the range `[0, 1)`, or even characters as well, e.g. `\"a\"..\"d\"` would be `\"a\" | \"b\" | \"c\" | \"d\"`\r\n\r\n## Scenarios\r\n\r\nListed scenarios in the original thread\r\n\r\n * Terminal colors, integer 0-15 inclusive\r\n * RGB color components, integer 0-255 inclusive\r\n * 32-bit unsigned ints, integer 0-2^32-1 inclusive\r\n * `Math.random()` result, floating point 0 (inclusive) to 1 (exclusive)\r\n * `\"b\" | \"c\" | \"d\"` (no scenario given)\r\n * Probabilities, floating point 0 (inclusive) to 1 (inclusive)\r\n * Any non-negative integer\r\n * Seconds/minutes/hours/days/months\r\n * Correctly bounding `UInt8` and friends\r\n * Some API that takes an integer between 5 and 30\r\n * Opacity, floating point 0 (inclusive) to 1 (inclusive)\r\n * Status code ranges (e.g. 200-399 is success, 400-600 is error)\r\n * Latitude/longitude, floating point -90 to 90, -180 to 180, inclusive/exclusive unclear\r\n * Tuples (seems like this is done?)\r\n * Some API that takes an integer between 1 and 1000\r\n * Percentage, floating point 0 (inclusive) to 1 (inclusive)\r\n * Sudoku values\r\n\r\n### Scenario Discussion\r\n\r\nFirst, we need to make a distinction between static (i.e. hardcoded) and dynamic (i.e. computed) data.\r\n\r\nValidation of certain static inputs can make a lot of sense here. I think every programmer has encountered an API that they thought took an integer 0-255 value, but actually took a 0-1.0, or vice versa. Scenarios like \"opacity is specified as a percentage, not an alpha channel value\" make a ton of sense, especially since those sorts of values are reasonably likely to be hardcoded, and mistakes here can be subtle.\r\n\r\nSame goes for something like JavaScript's `Date`'s infamous `month` behavior, where 0 is January and 11 is December. Unfortunately, even in an ideal world, unless you happened to be specifying something like `2024, 12, 25`, it's unlikely to be caught by a range-based checking approach.\r\n\r\nSome other scenarios seem a bit overclever, or don't seem to correspond to a scenario where the checker is even active. HTTP Status Codes have ranges, to be sure, but the use case is what, exactly? Either your transport library is sorting these things out ahead of time for you, or it's not, in which case it's not going to neatly correspond to a discriminated union. Sudoku values are opaque tokens, not numbers in any meaningful sense.\r\n\r\nMany of these scenarios don't seem to correspond to any static scenario. For example, it seems unlikely that you have a nontrivial number of geographic coordinates hardcoded into your program.\r\n\r\nValidation of dynamic inputs is where things get a bit weird here.\r\n\r\nIn an output position, e.g. `Math.random()` returning a number `0 \u003c= n \u003c 1`, this seems like information of somewhat limited utility which might be better presented as a documentation comment on the function. We could protect against mistakes like `if (Math.random() > 1)`, for sure, though in 150ish comments this wasn't brought up.\r\n\r\nIn a dynamic input position, the feature implies new kinds of narrowing, as well as some higher-order reasoning that doesn't exist right now. For example, here, we'd need to bound `n` first to `[0, Infinity)`, then `[0, 2)`, then have some suitable representation of what `Math.floor` does to its input (further implying that it's generic).\r\n```ts\r\ndeclare function takesBit(n: 0 | 1): void;\r\nfunction fn(n: number) {\r\n    if (n >= 0 && n \u003c 2) {\r\n        // OK by construction\r\n        takesBit(Math.floor(n));\r\n    }\r\n}\r\n```\r\nPeople will of course want to use `Math.max` / `Math.min` to create these bounds:\r\n```ts\r\ndeclare function takeCent(n: 0..100): void;\r\n\r\nfunction fn(n: number) {\r\n    takeCent(Math.max(0, Math.min(n, 99)));\r\n}\r\n```\r\nSo there's also need of a representation of what `max` and `min` do.\r\n\r\nThis implies type constructors for:\r\n * maximum\r\n * minimum\r\n * bitwise integer truncation (`-4.5 | 0` is `-4`)\r\n * mathematical floor/ceil (`Math.floor(-4.5)` is `-5`)\r\n * All other arithmatic operations\r\n\r\n## Other Problems\r\n\r\n### Floating vs Integer, Inclusive vs Exclusive Bounds\r\n\r\nThere was a fair amount of discussion in the original issue basically saying, this should obviously just be for integers, because floats are too hard to deal with, and also, this should obviously just be for floats, and then there should be an intersectable `int & ` type to cause any float-based range to become integral.\r\n\r\nSuggestions here have hinted that that\r\n * `0..1` (a percentage) is a float between 0 and 1, end-inclusive\r\n * `0..1` (`Math.random` result) is a float between 0 and 1, end-exclusive\r\n * `0..255` is an int between 0 and 255\r\n\r\nBut these can't all be true at once; either `0..1` is `0`, `0 | 1`, or `[0, 1]`, or `[0, 1)`. It can't be all of them. Similarly, `0..255` is either `0 | ... | 255`, `0 | ... | 254`, `[0, 255]`, or `[0, 255)`.\r\n\r\nThere have also been proposals for separate float/integral/arbitrary-step syntax, as well as separate endpoint syntax. It doesn't seem likely, at all, that someone seeing `0..16` will immediately know which is happening.\r\n\r\n### Union vs Non-finite Representation\r\n\r\nMany comments in the original issue stipulated that this should \"just\" be sugar for expanding into a union type, e.g. `0..2` is `0 | 1 | 2`, or `Range\u003c0, 30, 10>` should \"just\" be sugar for `0 | 10 | 20 | 30`.\r\n\r\nThis points to a number of very difficult problems which I think render this feature nearly completely intractable given how unions work today.\r\n\r\nToday, you can already write `0 | 1 | 2`. You can, in fact, write *very* large unions, and we've done a ton of work to optimize those unions as best we can. The impracticality of writing out the union from `0` to `255` is a good counterweight to the performance implications of doing so.\r\n\r\nBut the scenarios in the original issue are *often* around places where that union expansion would instantly cause TypeScript to run out of memory. This isn't something trivially avoidable, either. If you write something like\r\n```ts\r\ntype AnyUInt16But5 = Exclude\u003c0..32767, 5>;\r\n```\r\nthe resulting type is necessarily a) an intersection of a range and a negated type, neither of which we have yet, b) a union of 32766 members, or c) a new kind of type constructor in addition to negated types.\r\n\r\nThe implied confusion by `0 | 1 | 2` being a completely different beast from `0..2`, even though by necessity you would only be writing the latter if the former didn't work, seems nearly insurmountable. Why *shouldn't* they be identical? It's very, very hard to justify. A feature that seems to want to work one way for small numbers and another way for large numbers sets off a lot of red flags.\r\n\r\n### Complexity\r\n\r\nNew type constructors are, by far, the most expensive thing we can do in TypeScript in terms of implementation complexity. Each new way to construct a type adds to the matrix of higher-order reasoning we have to implement in order to make generics and type relationships work. The scenarios as described require somewhere between 2 and 6. Mapped types was 1, conditional types was 1, string enums was 1, etc. -- the complexity spend here is quite high just in rough terms.\r\n\r\n## Possible Next Step?\r\n\r\nIt broadly seems like 90%+ of the value in this feature lies in the checking of static values, but 90%+ of the complexity, if not more, lies in the checking of dynamic values, plus the complexity of how this feature would work with existing type concepts like literal unions.\r\n\r\nThe logical outcome of \"Well just check static values, then\" of this is unsatisfying, to say the least:\r\n```ts\r\ndeclare function doProbability(n: 0..1): void;\r\ndoProbability(3); // Error detected\r\ndoProbability(Math.random() * 200); // 🤷‍♂️\r\n```\r\n\r\nExcess property checking has been a fairly successful effort to date, able to catch a huge percentage of typos and misapprehensions while not implying a new kind of type. I'm curious if we could support JSDoc-based range checking which only fires on literal inputs:\r\n```ts\r\n/** @param n {0..1} */\r\nfunction doProbability(n: number) { }\r\ndoProbability(3); // Error detected\r\ndoProbability(Math.random() * 200); // Well, we tried.\r\n```\r\n\r\nThis would cleanly position the feature outside the type system, possibly even as an editor-only feature like `@deprecated`. This also fits in well with regex types (#41160), where an entire *type system* feature seems like overkill for something where the primary use case is to notify you right away if you just typed an out-bounds literal value.\r\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2023-07-07T22:38:58Z","url":"https://github.com/microsoft/TypeScript/issues/54925"}

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:70ad7a20-aaea-2b3e-c67e-93604f27665c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9332:D5AA4:E980D6:138A8BF:6B00FEAC
html-safe-nonce6072907e1404a6339b030a3916e721f2d9830838a5a87ea66016582320849d9e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzMyOkQ1QUE0OkU5ODBENjoxMzhBOEJGOjZCMDBGRUFDIiwidmlzaXRvcl9pZCI6IjEyMjAyMzgzNTg0ODgzNTAzODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac393a6b5269be2f3d5b2fec580dada2cbfe1a126987e42cd256d3420a3aec63da
hovercard-subject-tagissue:1794492021
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/54925/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cc8d074676de4ec45a0348eff674d35bb9c76499a44da0dfa56580029a00a079/microsoft/TypeScript/issues/54925
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc8d074676de4ec45a0348eff674d35bb9c76499a44da0dfa56580029a00a079/microsoft/TypeScript/issues/54925
og:image:altFeature Update: Numeric Ranges This is a Feature Update for #15480. What's the Proposal? The general idea is that you'd be able to write a type which represents a range of numbers, e.g. 0..15 to re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRyanCavanaugh
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/54925#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F54925
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%2F54925
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/54925
Reloadhttps://github.com/microsoft/TypeScript/issues/54925
Reloadhttps://github.com/microsoft/TypeScript/issues/54925
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/54925
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/54925
Numeric Range Types (Feature Update)https://github.com/microsoft/TypeScript/issues/54925#top
Feature UpdateSome issues deserve a fresh starthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Feature%20Update%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 7, 2023https://github.com/microsoft/TypeScript/issues/54925#issue-1794492021
Feature Updatehttps://github.com/microsoft/TypeScript/issues/54923
#15480https://github.com/microsoft/TypeScript/issues/15480
#41160https://github.com/microsoft/TypeScript/issues/41160
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Feature UpdateSome issues deserve a fresh starthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Feature%20Update%22
on Jul 7, 2023https://github.com/microsoft/TypeScript/issues/54925#event-9759810475
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Jul 7, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1626341523
https://github.com/voxpelli
Pelle Wessman (voxpelli)https://github.com/voxpelli
on Jul 7, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1626343499
fastify/fastify#4823https://github.com/fastify/fastify/pull/4823
https://github.com/RReverser
Ingvar Stepanyan (RReverser)https://github.com/RReverser
on Jul 7, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1626363493
https://github.com/icecream17
Steven Nguyen (icecream17)https://github.com/icecream17
on Jul 8, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1626387526
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Jul 8, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1626874678
Thainahttps://github.com/Thaina
#54923https://github.com/microsoft/TypeScript/issues/54923
https://github.com/HolgerJeromin
Holger Jeromin (HolgerJeromin)https://github.com/HolgerJeromin
on Jul 10, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1628555111
Brad Zacher (@bradzacher)https://github.com/bradzacher
reportedhttps://github.com/microsoft/TypeScript/issues/15480#issuecomment-1331489213
ts-eslint wishhttps://github.com/typescript-eslint/typescript-eslint/issues/6126
microsofthttps://github.com/microsoft
Thainahttps://github.com/Thaina
on Jul 17, 2023https://github.com/microsoft/TypeScript/issues/54925#event-9840380131
microsofthttps://github.com/microsoft
Oliver Rose (olivermrose)https://github.com/olivermrose
on Jul 17, 2023https://github.com/microsoft/TypeScript/issues/54925#event-9840381361
microsofthttps://github.com/microsoft
Thainahttps://github.com/Thaina
on Jul 17, 2023https://github.com/microsoft/TypeScript/issues/54925#event-9840381846
https://github.com/Zarel
Guangcong Luo (Zarel)https://github.com/Zarel
on Nov 10, 2023https://github.com/microsoft/TypeScript/issues/54925#issuecomment-1804926872
https://private-user-images.githubusercontent.com/551184/281923359-8769f74d-ed6f-4c5e-8316-118e7bbab4bf.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMjc2MDksIm5iZiI6MTc5NTIyNzMwOSwicGF0aCI6Ii81NTExODQvMjgxOTIzMzU5LTg3NjlmNzRkLWVkNmYtNGM1ZS04MzE2LTExOGU3YmJhYjRiZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwMjE1MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYjIzYzkwMDcyM2VjOGRkYTg5NmRlNTBkOTBkZjkxMzc5YmU0OGY4MGU5NGRjMTQwMWQxZGIwMzlkNWQ5YmE1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.svWUAtjmmXLMF-0_7zJ3mg0BAavbUH3pH6oYLW9Nl58
https://github.com/phpcoder2022
phpcoder2022https://github.com/phpcoder2022
on Mar 22, 2024https://github.com/microsoft/TypeScript/issues/54925#issuecomment-2014622474
fastify examplehttps://github.com/fastify/fastify/pull/4823
trim type challengehttps://github.com/type-challenges/type-challenges/blob/main/questions/00106-medium-trimleft/README.md
playgroundhttps://www.typescriptlang.org/play#code/C4TwDgpgBAcghsKBeKBGKAfKAmTUDMeALHgKx4BseA7HgBx4CcA3AFCiRQAiAlgOY9EKAAx54wNh2gwArgBs5ABQBOEAGY8AHhAAmsgLYAjCMuRQABgBIA3gHJhtvPYdPhbx1mfvXb759++HlBeAbas-gGBPpF+wTGh0fEuEUnu4XGpUSmZyRk57gC+NgB2MkYmBeaS4NAAksXAAEpwxXwQADysUFAAKlAQmsAQxToAzlCl5aZYk8amAGRQ1lA6-IKjAFwTZXMA2gC6UAVdYvJKqhraejsmpwoq6lq6BnNQi8urAsCb21MHRwAaE4AZWAphQVmsPUqQIAfGZQaYBkMRuNIaMwTxWgUAHQ2DHKLF8Sp4dGY7EQfHk4nmUlUwnYgC09KJlROAH5fnMTltEf1BsMxidupCsWpbgAxHjKDG8L78lFjbhrYBFaxi24AeWAAAsTHL1grBeNZrcsLJ7hcntcpmzut1OQAKTX6QTtHoA4Kfda2WHCt5LFYqn67KUy4AG4BA+32nFxx31JotNrtbV65SR0bw5HGwPe75bU3Kf7HGMxzmJ5qtDpp-XB2G7Wz50a2fb+mNbA7tqAASkOBR7-t5YKNqIsNg1pjDspVo6VkbtZadLrdHq9wd9AY+wc704jKv7g7LUELN2U1U4VbaOlIwlQohQleTHVv99hF+gmuKEGB-GKZl2SN9g-XoAHcAHtfz4YpxhQXZxE9ICQJ6HVVB-P9YKgXY4xxHoIKgmDEIPECJXAmRlAIzDsLjFC0MooivmA9gaigAAhdRwNUbB8DcMwv3Q6C8DwyCMKE1CIAEmC8F2VAGMEOSo2VRj0l2bBPVELB0CwNSlPk3TgEOLBVM9fB1PUpiAGNwJgxALNUBAIHYtROOgFB2icly53GSMDlhR0e2QeFOm6ABBZQ+AMLyuRMaMoBUcCLIgUZRmeMozCfat2jCiKylhOFHUmLZ4sS5LUv0KLty+H4PNUI4oE5bLIsLCAADcTACpB4UmNhWCsmyoAENqaogbjeJQOyIAc4b3I4rieOEPyezYQbHNmkb5sdRlUCW1gVuG0bhEdYQdr2taDsdbiTp4Iazo2g6rpu5y5rcC6eO23brtWp71pexhqDeh6vpc876g0YpBBAQH9o2+AYB2oA
https://github.com/CamJN
Camden Narzt (CamJN)https://github.com/CamJN
on Mar 23, 2024https://github.com/microsoft/TypeScript/issues/54925#issuecomment-2016610709
phpcoder2022https://github.com/phpcoder2022
for examplehttps://www.typescriptlang.org/play#code/C4TwDgpgBAcghsKBeKBGKAfKAmTUDMeALHgKx4BseA7HgBx4CcA3AFCiRQAiAlgOY9EKAAx54wNh2gwArgBs5ABQBOEAGY8AHhAAmsgLYAjCMuRQABgBIA3gHJhtvPYdPhbx1mfvXb759++HlBeAbas-gGBPpF+wTGh0fEuEUnu4XGpUSmZyRk57gC+NgB2MkYmBeaS4NAAksXAAEpwxXwQADysUFAAKlAQmsAQxToAzlCl5aZYk8amAGRQ1lA6-IKjAFwTZXMA2gC6UAVdYvJKqhraejsmpwoq6lq6BnNQi8urAsCb21MHRwAaE4AZWAphQVmsPUqQIAfGZQaYBkMRuNIaMwTxWgUAHQ2DHKLF8Sp4dGY7EQfHk4nmUlUwnYgC09KJlROAH5fnMTltEf1BsMxidupCsWpbgAxHjKDG8L78lFjbhrYBFaxi24AeWAAAsTHL1grBeNZrcsLJ7hcntcpmzut1OQAKTX6QTtHoA4Kfda2WHCt5LFYqn67KUy4AG4BA+32nFxx31JotNrtbV65SR0bw5HGwPe75bU3Kf7HGMxzmJ5qtDpp-XB2G7Wz50a2fb+mNbA7tqAASkOBR7-t5YKNqIsNg1pjDspVo6VkbtZadLrdHq9wd9AY+wc704jKv7g7LUELN2U1U4VbaOlIwlQohQleTHVv99hbFYcggiDgWyvulfB8oGEZggA
https://github.com/phpcoder2022
phpcoder2022https://github.com/phpcoder2022
on Mar 25, 2024https://github.com/microsoft/TypeScript/issues/54925#issuecomment-2018154313
Camden Narzt (@CamJN)https://github.com/CamJN
completedhttps://www.typescriptlang.org/play#code/C4TwDgpgBAcghsKBeKBGKAfKAmTUDMeALHgKx4BseA7HgBx4CcA3AFCiRQAiAlgOY9EKAAx54wNh2gAlCABMArgGMIALQgAnAPYAeAMrANUCAA9gEAHZyAzlGuGeFvgD5kUA0awAKVlHeHjM0sbKAADYQASAG9HADNNKAAVOB4AG0DzK1t7DUc+AF9QqAB+KFlFFXVtHWS01wAuKAsIADdNVgBKSXBoRIB3S1AAMR42qq1bFHLlNU1dAHJhJeWV1bWV+eduzhgFVNSABQ0IWJ4TeV2AWwAjBJRQ6P7BkBGxuet86IsFG81C7egAEkLMBpHAnBBEj03ABtcQAGigADoUbwBMAYQBdTF4GHCTEA2A-W4aADqggAFloFMA0YJJlAAPKXQQ6b6-DSI+Zyfj0zaEgBqcA0wNB4L4EB0ACETlpjhlgrZRWCIVDIK4UFcSeTgFSaXTgLYAGRQKJQHno6yNGWxOXQfKE5XiyW+JIKrJQLzskliPaHY6nc5yLWaDqu7zehJYXb7I4nM4XYmhqAms0W+mNJ2q6H5eGujxuB5RRKFPMa-xGUyZEJFnJ5T5ReYQeZ4eYAURbWHmSM7UHmAFp5g2605Cq7SpGNK7GgWq4rXX4i3EEiMNPYDe6QgaG8ujIzdZoDbY5x7J77YwGE8Gkxox34-KUvMzWYkuenDZsFynTebeYbGjCq7rn+eb3veKJIl4WYSjo+4Uoef7WK4J4hGmiGNJOWJQPkX5gaU0GSnBCGWs4MLcoh8yYrh94AVRYF+B0OL5GGYEzgEKG2EuFjxEYQG0n+m62NuoTUY+z7ADUb4Ua4qa-paAF8QaTEsfRGE3oSjLNHo-AWLCSmEv0WjaXwFgMnCCCIvp7DQokFLHBAxmmbCEGGY51iWX+BLWZwQzUhobnOSitn2W5Hnol5UhQDadqkEsbiaQ5Ol4K5Om2FgMLoFguBYIQWBEGFggFcAOLpaQiLCOVEXQtFxyoMs8VaUlWApSZaVJHZECJa1uKoOVfVQPihI1RA2D4HFKAJY5yV9EZqXJR1XVOelvXcCBq3okVVHpdg5V4JlOBFZtuI7QQ-WDawrBKFopmIEoxwIBAw1uNKsryhxUAEWqEDOF4HTIK4OiugAghofBXIJTQ3ngQoiiCKowcCzQaPD32gR9FhIyjEOfT0aNHFoKjWNYiaXG4INgz8EOTl++Fw86Ojk1czhfpmGOaFj71PaUjOUxhrSaGWXo-I0+OE8T16k+9aHyVFr32iUUA86TfNtBof1IK47JsFdN1QHdEAPSjcjPcDoPg+9k6C+yjRKx0rNihCDNmz8Gqa5TcC2M0qtsJd132FAAhtMNo3jXr93mMNL22scIfCD9XSsIHj1y7HXj9qgCdJ8HY3CF4wiZ6MyfRyNOd50ipAF0HKel6NldF3aqex3X2dLF4IcZ4nhct7njDUGNGdsFn1et8CpwWIIIDN8PufwDACesKkECILcxexcIjQwwRUcxUs5b64bzpyF4OcJyvO+iCg+-mEbXh1fnbCL8vct3+vUCb3TjvDS-e-hxAN+MAA0+z96qX1-jfNeQDi4vzcFfP+h9b4rEgXaaBoCDbX3genJBtUQFoGYFAAA9PgvW4J5iIA9tYJKfRKTUluvBJQABrX2pktCLyRKkLQfAvBn2wUsBOj8oDcJLksDewot7dx-mguBEIj7tywUIi+YdJHgN4WwQRscYFgPgS-e+rA1E5zcKgPBhDiEWFIVAchlDqE0j1nQxhTD-ZDygTg2Bkcv7LHjoPLuwDW6CIgZ4quTifHeJ0Y45BywuHTwTkAA
https://github.com/fredrare
Fredrare (fredrare)https://github.com/fredrare
on Dec 6, 2024https://github.com/microsoft/TypeScript/issues/54925#issuecomment-2524231128
gisthttps://gist.github.com/fredrare/1cacbacecbfdc2d992fa8c76f91f64d0
https://github.com/HansBrende
Hans Brende (HansBrende)https://github.com/HansBrende
on Dec 18, 2024https://github.com/microsoft/TypeScript/issues/54925#issuecomment-2551900259
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/KrystilizeNevaDies
Tyreece Rozycki (KrystilizeNevaDies)https://github.com/KrystilizeNevaDies
on May 19, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-2889633151
https://github.com/mkantor
Matt Kantor (mkantor)https://github.com/mkantor
on Dec 9, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3633325194
Tyreece Rozycki (@KrystilizeNevaDies)https://github.com/KrystilizeNevaDies
distributivityhttps://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types
https://github.com/snarbles2
snarbles2https://github.com/snarbles2
on Dec 9, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3633483207
https://github.com/mkantor
Matt Kantor (mkantor)https://github.com/mkantor
on Dec 9, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3633527696
snarbles2https://github.com/snarbles2
Tyreece Rozycki (@KrystilizeNevaDies)https://github.com/KrystilizeNevaDies
https://github.com/maruru-de
Maru (maruru-de)https://github.com/maruru-de
on Dec 10, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3636306426
Rusthttps://doc.rust-lang.org/reference/expressions/range-expr.html
Pythonhttps://docs.python.org/3/library/stdtypes.html#ranges
Kotlinhttps://kotlinlang.org/docs/ranges.html
Swifthttps://developer.apple.com/documentation/swift/range
https://github.com/KrystilizeNevaDies
Tyreece Rozycki (KrystilizeNevaDies)https://github.com/KrystilizeNevaDies
on Dec 10, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3636576684
Matt Kantor (@mkantor)https://github.com/mkantor
https://github.com/shaedrich
Sebastian Hädrich (shaedrich)https://github.com/shaedrich
on Dec 10, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3636600953
Ruby denotes inclusive vs exclusive ranges with this syntaxhttps://ruby-doc.org/core-2.1.3/Range.html
https://github.com/KrystilizeNevaDies
Tyreece Rozycki (KrystilizeNevaDies)https://github.com/KrystilizeNevaDies
on Dec 10, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3636617328
Sebastian Hädrich (@shaedrich)https://github.com/shaedrich
https://github.com/mostpinkest
mostpinkesthttps://github.com/mostpinkest
on Dec 11, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3639435722
https://github.com/KrystilizeNevaDies
Tyreece Rozycki (KrystilizeNevaDies)https://github.com/KrystilizeNevaDies
on Dec 11, 2025https://github.com/microsoft/TypeScript/issues/54925#issuecomment-3639815670
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/54925
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/54925
Feature UpdateSome issues deserve a fresh starthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Feature%20Update%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.