Title: Number Literal Type support? · Issue #7982 · microsoft/TypeScript · GitHub
Open Graph Title: Number Literal Type support? · Issue #7982 · microsoft/TypeScript
X Title: Number Literal Type support? · Issue #7982 · microsoft/TypeScript
Description: TypeScript 1.8.9: Can there be a way to limit number value for example an property that accepts 0-255 number or decimals as shown below eg: interface options{ red:number[0-255];//0 to 255 count:number[0-*];//0 to infinity opacity:number[...
Open Graph Description: TypeScript 1.8.9: Can there be a way to limit number value for example an property that accepts 0-255 number or decimals as shown below eg: interface options{ red:number[0-255];//0 to 255 count:num...
X Description: TypeScript 1.8.9: Can there be a way to limit number value for example an property that accepts 0-255 number or decimals as shown below eg: interface options{ red:number[0-255];//0 to 255 count:num...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7982
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Number Literal Type support?","articleBody":"**TypeScript 1.8.9:** \nCan there be a way to limit number value for example \n\nan property that accepts 0-255 number or decimals as shown below \n\neg:\n\n```\ninterface options{\nred:number[0-255];//0 to 255\ncount:number[0-*];//0 to infinity\nopacity:number[0.0-1.0];// decimal points from 0 to 1\n}\n```\n\nthis would let users limit the options that most javascript frameworks allow\n\nThanks\n","author":{"url":"https://github.com/essuraj","@type":"Person","name":"essuraj"},"datePublished":"2016-04-09T08:05:27Z","url":"https://github.com/microsoft/TypeScript/issues/7982"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f94e4d47-a280-ef7c-6476-f29200b58f2d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D18:180151:4AFA4:6682F:6AFBF501 |
| html-safe-nonce | 6796f04c45121f353589c57e8793158c7f0ebf74411d73299b8034aa37f8ff61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDE4OjE4MDE1MTo0QUZBNDo2NjgyRjo2QUZCRjUwMSIsInZpc2l0b3JfaWQiOiIzMDEwNzM2MzMzNTczMDU5ODQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d982554d5d9c11fa820f64053cd150eeacd01bca1deedd35416f7d488ff21b5e |
| hovercard-subject-tag | issue:147105246 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/7982/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4526b86b428a8c5f183d17d7e0f52d614e2e2075f893d71b12c2152f7509ef2d/microsoft/TypeScript/issues/7982 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4526b86b428a8c5f183d17d7e0f52d614e2e2075f893d71b12c2152f7509ef2d/microsoft/TypeScript/issues/7982 |
| og:image:alt | TypeScript 1.8.9: Can there be a way to limit number value for example an property that accepts 0-255 number or decimals as shown below eg: interface options{ red:number[0-255];//0 to 255 count:num... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | essuraj |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| 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 | issues |
Links:
Viewport: width=device-width