Title: Support computed properties in class property declarations · Issue #1841 · microsoft/TypeScript · GitHub
Open Graph Title: Support computed properties in class property declarations · Issue #1841 · microsoft/TypeScript
X Title: Support computed properties in class property declarations · Issue #1841 · microsoft/TypeScript
Description: We can emit computed properties class properties, using the following scheme: class C { ["hello"] = 0; static ["bye"] = 0; } emits as: var C = (function() { var __t1 = "hello"; function C() { this[__t1] = 0; } C["bye"] = 0; return C; })();
Open Graph Description: We can emit computed properties class properties, using the following scheme: class C { ["hello"] = 0; static ["bye"] = 0; } emits as: var C = (function() { var __t1 = "hello"; function C() { this[...
X Description: We can emit computed properties class properties, using the following scheme: class C { ["hello"] = 0; static ["bye"] = 0; } emits as: var C = (function() { var __t1 = "hel...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/1841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support computed properties in class property declarations","articleBody":"We can emit computed properties class properties, using the following scheme:\n\n``` ts\nclass C {\n [\"hello\"] = 0;\n static [\"bye\"] = 0;\n}\n```\n\nemits as:\n\n``` js\nvar C = (function() {\n var __t1 = \"hello\";\n function C() {\n this[__t1] = 0;\n }\n C[\"bye\"] = 0;\n return C;\n})();\n```\n","author":{"url":"https://github.com/JsonFreeman","@type":"Person","name":"JsonFreeman"},"datePublished":"2015-01-28T23:02:21Z","url":"https://github.com/microsoft/TypeScript/issues/1841"}
| 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:7b8022a0-3ef9-73c3-a36a-4b4e03b970b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8826:134361:D52ED0:11999F4:6B00F95D |
| html-safe-nonce | 4ef7192d557ff8bc3116c02ed76680ced9a5e826c474cd03b8f99f88fdd0c793 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODI2OjEzNDM2MTpENTJFRDA6MTE5OTlGNDo2QjAwRjk1RCIsInZpc2l0b3JfaWQiOiI1OTcyMzgwMDE2NjMyMTk5NTE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 34e4e5a8daa5c2dccaddae66e38b9747c2a30d210d9242062bf7064306f56d2e |
| hovercard-subject-tag | issue:55829444 |
| 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/1841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da2fa4fd60c7e69ea882d69593677569f6dcabf2ec9796225680972fd80dcc54/microsoft/TypeScript/issues/1841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da2fa4fd60c7e69ea882d69593677569f6dcabf2ec9796225680972fd80dcc54/microsoft/TypeScript/issues/1841 |
| og:image:alt | We can emit computed properties class properties, using the following scheme: class C { ["hello"] = 0; static ["bye"] = 0; } emits as: var C = (function() { var __t1 = "hello"; function C() { this[... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JsonFreeman |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width