Title: String Based Enum - Reverse Mapping Problem · Issue #21935 · microsoft/TypeScript · GitHub
Open Graph Title: String Based Enum - Reverse Mapping Problem · Issue #21935 · microsoft/TypeScript
X Title: String Based Enum - Reverse Mapping Problem · Issue #21935 · microsoft/TypeScript
Description: My TypeScript Version is 2.7.1 enum Country{ India = "INR", France = "EUR", USA = "USD", Germany = France } let vx : Country = Country.India; console.log("vx is "+vx); console.log("enum name is "+Country[vx]); The output are as follows v...
Open Graph Description: My TypeScript Version is 2.7.1 enum Country{ India = "INR", France = "EUR", USA = "USD", Germany = France } let vx : Country = Country.India; console.log("vx is "+vx); console.log("enum name is "+C...
X Description: My TypeScript Version is 2.7.1 enum Country{ India = "INR", France = "EUR", USA = "USD", Germany = France } let vx : Country = Country.India; console.log("vx is &...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/21935
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"String Based Enum - Reverse Mapping Problem","articleBody":"My TypeScript Version is 2.7.1\r\n\r\n1. enum Country{\r\n2. India = \"INR\",\r\n3. France = \"EUR\",\r\n4. USA = \"USD\",\r\n5. Germany = France\r\n6. }\r\n7. let vx : Country = Country.India;\r\n8. console.log(\"vx is \"+vx);\r\n9. console.log(\"enum name is \"+Country[vx]);\r\n\r\nThe output are as follows\r\n\r\nvx is INR\r\nenum name is undefined\r\n\r\nIn Line 9, the reverse mapping is not working for string based enum.\r\n\r\nThanks\r\n\r\nKannan Wisen","author":{"url":"https://github.com/kannanwisen","@type":"Person","name":"kannanwisen"},"datePublished":"2018-02-14T09:55:08Z","url":"https://github.com/microsoft/TypeScript/issues/21935"}
| 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:c9a11557-418f-503f-0303-f07d466cb6ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E410:E3C4F:5D2824:78C455:6B00DE39 |
| html-safe-nonce | 03c70f4714add58ecc6dc222f6a2647afba4547178ea9fdfdbe7bfe936bae9f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDEwOkUzQzRGOjVEMjgyNDo3OEM0NTU6NkIwMERFMzkiLCJ2aXNpdG9yX2lkIjoiOTM3Njk2MTUxMTI0MTA2ODA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1b08bf785dadea254fbc92a0c8e90ea2e845df33febcc197b5e409e479a9679f |
| hovercard-subject-tag | issue:297033842 |
| 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/21935/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5f58e35de3d2add880d3442f45842110756a50fd6fe10f317a40f7ffa05afa3/microsoft/TypeScript/issues/21935 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5f58e35de3d2add880d3442f45842110756a50fd6fe10f317a40f7ffa05afa3/microsoft/TypeScript/issues/21935 |
| og:image:alt | My TypeScript Version is 2.7.1 enum Country{ India = "INR", France = "EUR", USA = "USD", Germany = France } let vx : Country = Country.India; console.log("vx is "+vx); console.log("enum name is "+C... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kannanwisen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width