| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:9519e262-2d48-bff8-90fd-84f14c485239 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8E0A:185EEC:E32BD:1387D3:6AFBFAD6 |
| html-safe-nonce | 44035b290aa1328b2157152a8eadaa81c0c61034d4e838cb3a06223e0598e76c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTBBOjE4NUVFQzpFMzJCRDoxMzg3RDM6NkFGQkZBRDYiLCJ2aXNpdG9yX2lkIjoiMzYxOTEzMTU0NjQwNjc0NjgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e43127fd5e4a7b482c725d1e1c02c725a4db410f9b7c6548e9af3f75b6ed1301 |
| hovercard-subject-tag | pull_request:62533134 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/Microsoft/TypeScript/7480/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/312c7f492e52ed5aa6d7849365d8fdceb0117f2d35b66af394a330b14fc6ffef/microsoft/TypeScript/pull/7480 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/312c7f492e52ed5aa6d7849365d8fdceb0117f2d35b66af394a330b14fc6ffef/microsoft/TypeScript/pull/7480 |
| og:image:alt | This is a prototype for numeric literal types, in the same vein as string literal types.
All numeric syntaxes supported by JS should be supported (as far as I know) in type positions. Additionally,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weswigham |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/Microsoft/TypeScript/pull/7480#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicrosoft%2FTypeScript%2Fpull%2F7480 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicrosoft%2FTypeScript%2Fpull%2F7480 |
| Sign up | https://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 |
| Reload | https://github.com/Microsoft/TypeScript/pull/7480 |
| Reload | https://github.com/Microsoft/TypeScript/pull/7480 |
| Reload | https://github.com/Microsoft/TypeScript/pull/7480 |
| microsoft | https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
| Code | https://github.com/microsoft/TypeScript |
| Issues5k (5k) | https://github.com/microsoft/TypeScript/issues |
| Pull requests335 (335) | https://github.com/microsoft/TypeScript/pulls |
| Actions | https://github.com/microsoft/TypeScript/actions |
| Projects | https://github.com/microsoft/TypeScript/projects |
| Wiki | https://github.com/microsoft/TypeScript/wiki |
| Security and quality | https://github.com/microsoft/TypeScript/security |
| Insights | https://github.com/microsoft/TypeScript/pulse |
| https://github.com/microsoft/TypeScript |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| microsoft:master | https://github.com/microsoft/TypeScript/tree/master |
| weswigham:number-types | https://github.com/weswigham/TypeScript/tree/number-types |
| Conversation | https://github.com/microsoft/TypeScript/pull/7480 |
| Commits13 (13) | https://github.com/microsoft/TypeScript/pull/7480/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/7480/checks |
| Files changed | https://github.com/microsoft/TypeScript/pull/7480/files |
| Prototype: Numeric Literal Types | https://github.com/Microsoft/TypeScript/pull/7480#top |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| microsoft:master | https://github.com/microsoft/TypeScript/tree/master |
| weswigham:number-types | https://github.com/weswigham/TypeScript/tree/number-types |
|
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Mar 11, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#issue-140165877 |
| #7235 | https://github.com/microsoft/TypeScript/pull/7235 |
| Non-nullable types #7140 | https://github.com/microsoft/TypeScript/pull/7140 |
| Mutability widening for literal types #6554 | https://github.com/microsoft/TypeScript/pull/6554 |
| Control flow based type guards #6959 | https://github.com/microsoft/TypeScript/pull/6959 |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| 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 |
| Mar 11, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#event-586296895 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| force-pushed | https://github.com/microsoft/TypeScript/compare/9ec877a3954090361848592edc6820e200ebecc5..4d931db2345939542d55336c55ff3b50be62ed25 |
| 9ec877a | https://github.com/microsoft/TypeScript/commit/9ec877a3954090361848592edc6820e200ebecc5 |
| 4d931db | https://github.com/microsoft/TypeScript/commit/4d931db2345939542d55336c55ff3b50be62ed25 |
|
Compare
| https://github.com/microsoft/TypeScript/compare/9ec877a3954090361848592edc6820e200ebecc5..4d931db2345939542d55336c55ff3b50be62ed25 |
| March 14, 2016 18:41 | https://github.com/Microsoft/TypeScript/pull/7480#event-589185857 |
|
allow string literals (unions of string literals?) as a type of an indexer
#7656
| https://github.com/microsoft/TypeScript/issues/7656 |
|
Index signature arguments are not type checked based on the specialized key type they are constrained to
#7660
| https://github.com/microsoft/TypeScript/issues/7660 |
|
Suggestion: polymorphic object and tuple member type references through literal types
#7730
| https://github.com/microsoft/TypeScript/issues/7730 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| Apr 5, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#issuecomment-206005323 |
| Wesley Wigham (@weswigham) | https://github.com/weswigham |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| https://github.com/DanielRosenwasser |
| Daniel Rosenwasser (DanielRosenwasser) | https://github.com/DanielRosenwasser |
|
Domain: Literal Types
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Literal%20Types%22 |
| Apr 6, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#event-617309682 |
| DanielRosenwasser | https://github.com/DanielRosenwasser |
|
Apr 6, 2016
| https://github.com/Microsoft/TypeScript/pull/7480#discussion-diff-58765290 |
| View reviewed changes
| https://github.com/microsoft/TypeScript/pull/7480/files/15e8aaa15c18d4116c9f70432d24dd8935f5b2cd#diff-96e89e6b2c0322354cdf5a518a145a0396659f12f32ff0ada489aace82e4da6f |
| tests/baselines/reference/negativeNumericLiteralTypes.errors.txt | https://github.com/microsoft/TypeScript/pull/7480/files#diff-96e89e6b2c0322354cdf5a518a145a0396659f12f32ff0ada489aace82e4da6f |
| Daniel Rosenwasser (DanielRosenwasser) | https://github.com/DanielRosenwasser |
| Apr 6, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#discussion_r58765290 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Apr 6, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#discussion_r58789371 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #7235 | https://github.com/microsoft/TypeScript/pull/7235 |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| https://github.com/malibuzios |
| malibuzios | https://github.com/malibuzios |
|
Apr 9, 2016
| https://github.com/Microsoft/TypeScript/pull/7480#ref-issue-147105246 |
|
Number Literal Type support?
#7982
| https://github.com/microsoft/TypeScript/issues/7982 |
| https://github.com/DanielRosenwasser |
| Daniel Rosenwasser (DanielRosenwasser) | https://github.com/DanielRosenwasser |
|
Apr 15, 2016
| https://github.com/Microsoft/TypeScript/pull/7480#ref-issue-148768680 |
|
Design Meeting Notes for 4/15/2016
#8112
| https://github.com/microsoft/TypeScript/issues/8112 |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| April 26, 2016 02:10 | https://github.com/Microsoft/TypeScript/pull/7480#commits-pushed-407adc3 |
|
| https://github.com/weswigham |
| starting to flesh out numeric literal types | https://github.com/microsoft/TypeScript/pull/7480/commits/407adc3707d93e2f253d96e1d91420303e32ac27 |
| 407adc3 | https://github.com/microsoft/TypeScript/pull/7480/commits/407adc3707d93e2f253d96e1d91420303e32ac27 |
|
| https://github.com/weswigham |
| Preserve numeric literal formatting when definining numeric literal t… | https://github.com/microsoft/TypeScript/pull/7480/commits/87cc46e757eafb54b8706a2054e1d92fcb0869cb |
| 87cc46e | https://github.com/microsoft/TypeScript/pull/7480/commits/87cc46e757eafb54b8706a2054e1d92fcb0869cb |
|
| https://github.com/weswigham |
| stub | https://github.com/microsoft/TypeScript/pull/7480/commits/d143390612f4deec5abf625f1f41240874279a7c |
| d143390 | https://github.com/microsoft/TypeScript/pull/7480/commits/d143390612f4deec5abf625f1f41240874279a7c |
|
| https://github.com/weswigham |
| handful of test cases to work with | https://github.com/microsoft/TypeScript/pull/7480/commits/4f4e381898d5748552b438148005706bf502732d |
| 4f4e381 | https://github.com/microsoft/TypeScript/pull/7480/commits/4f4e381898d5748552b438148005706bf502732d |
|
| https://github.com/weswigham |
| Build in NaN and Infinity | https://github.com/microsoft/TypeScript/pull/7480/commits/a4f278975e1a7432a050be159bfeef0c25b25e87 |
| a4f2789 | https://github.com/microsoft/TypeScript/pull/7480/commits/a4f278975e1a7432a050be159bfeef0c25b25e87 |
|
| https://github.com/weswigham |
| change parsing a bit to make minuses better, broke some stuff in the … | https://github.com/microsoft/TypeScript/pull/7480/commits/d80fbe53fc310551be09d546e55e44aff38c8911 |
| d80fbe5 | https://github.com/microsoft/TypeScript/pull/7480/commits/d80fbe53fc310551be09d546e55e44aff38c8911 |
|
| https://github.com/weswigham |
| Remove NaN/Infinity from testing libs | https://github.com/microsoft/TypeScript/pull/7480/commits/74fe1ef8638e5b76bde9f17ed31cacb557ced439 |
| 74fe1ef | https://github.com/microsoft/TypeScript/pull/7480/commits/74fe1ef8638e5b76bde9f17ed31cacb557ced439 |
|
| https://github.com/weswigham |
| fix tests | https://github.com/microsoft/TypeScript/pull/7480/commits/2afea633f88e5ea77a932bec9ea01a19cb1d21b0 |
| 2afea63 | https://github.com/microsoft/TypeScript/pull/7480/commits/2afea633f88e5ea77a932bec9ea01a19cb1d21b0 |
|
| https://github.com/weswigham |
| first look at baseline changes from numeric types | https://github.com/microsoft/TypeScript/pull/7480/commits/ba552ccf718995493026f29af092ad4d2ccf6069 |
| ba552cc | https://github.com/microsoft/TypeScript/pull/7480/commits/ba552ccf718995493026f29af092ad4d2ccf6069 |
|
| https://github.com/weswigham |
| Revert NaN and Infinity to number types when not used in type positions | https://github.com/microsoft/TypeScript/pull/7480/commits/7562a9d05c170d46538d23aa40abff112e505e30 |
| 7562a9d | https://github.com/microsoft/TypeScript/pull/7480/commits/7562a9d05c170d46538d23aa40abff112e505e30 |
|
| https://github.com/weswigham |
| fix lint | https://github.com/microsoft/TypeScript/pull/7480/commits/e346855fd6f74d98b1ca41f657fa5a85cedb6e36 |
| e346855 | https://github.com/microsoft/TypeScript/pull/7480/commits/e346855fd6f74d98b1ca41f657fa5a85cedb6e36 |
|
| https://github.com/weswigham |
| rework how number types are made to fix node 0.10 octal literals | https://github.com/microsoft/TypeScript/pull/7480/commits/659d2e069342bba69909e41cd2648274ee27ef45 |
| 659d2e0 | https://github.com/microsoft/TypeScript/pull/7480/commits/659d2e069342bba69909e41cd2648274ee27ef45 |
|
| https://github.com/weswigham |
| Fix symbol baselines post-rebase | https://github.com/microsoft/TypeScript/pull/7480/commits/fcb4f9b6ee881bf371dd8548d2b702969d327418 |
| fcb4f9b | https://github.com/microsoft/TypeScript/pull/7480/commits/fcb4f9b6ee881bf371dd8548d2b702969d327418 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| force-pushed | https://github.com/microsoft/TypeScript/compare/15e8aaa15c18d4116c9f70432d24dd8935f5b2cd..fcb4f9b6ee881bf371dd8548d2b702969d327418 |
| 15e8aaa | https://github.com/microsoft/TypeScript/commit/15e8aaa15c18d4116c9f70432d24dd8935f5b2cd |
| fcb4f9b | https://github.com/microsoft/TypeScript/commit/fcb4f9b6ee881bf371dd8548d2b702969d327418 |
|
Compare
| https://github.com/microsoft/TypeScript/compare/15e8aaa15c18d4116c9f70432d24dd8935f5b2cd..fcb4f9b6ee881bf371dd8548d2b702969d327418 |
| April 26, 2016 06:41 | https://github.com/Microsoft/TypeScript/pull/7480#event-641036982 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Jun 17, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#issuecomment-226888096 |
| Anders Hejlsberg (@ahejlsberg) | https://github.com/ahejlsberg |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Jun 29, 2016
| https://github.com/Microsoft/TypeScript/pull/7480#ref-pullrequest-162831239 |
|
Number, enum, and boolean literal types
#9407
| https://github.com/microsoft/TypeScript/pull/9407 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| Jul 28, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#issuecomment-236017383 |
| Wesley Wigham (@weswigham) | https://github.com/weswigham |
| #9407 | https://github.com/microsoft/TypeScript/pull/9407 |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Jul 29, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#issuecomment-236311655 |
| Anders Hejlsberg (@ahejlsberg) | https://github.com/ahejlsberg |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Jul 29, 2016 | https://github.com/Microsoft/TypeScript/pull/7480#event-739811472 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| May 13, 2017 23:38 | https://github.com/Microsoft/TypeScript/pull/7480#event-1081134971 |
| https://github.com/KiaraGrouwstra |
| kiara (KiaraGrouwstra) | https://github.com/KiaraGrouwstra |
|
May 18, 2017
| https://github.com/Microsoft/TypeScript/pull/7480#ref-issue-226901916 |
|
numeric literal types disrespect arithmetics
#15645
| https://github.com/microsoft/TypeScript/issues/15645 |
| https://github.com/microsoft |
| Microsoft (microsoft) | https://github.com/microsoft |
| Jun 19, 2018 | https://github.com/Microsoft/TypeScript/pull/7480#event-1689642746 |
| https://github.co/hiddenchars |
| https://github.com/Microsoft/TypeScript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMicrosoft%2FTypeScript%2Fpull%2F7480 |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
|
Domain: Literal Types
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Literal%20Types%22 |
| Please reload this page | https://github.com/Microsoft/TypeScript/pull/7480 |
|
| https://github.com/weswigham |
|
| https://github.com/mhegazy |
|
| https://github.com/ahejlsberg |
|
| https://github.com/DanielRosenwasser |
|
| https://github.com/msftclas |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |