{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1841","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1841/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1841/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1841/events","html_url":"https://github.com/Microsoft/TypeScript/issues/1841","id":55829444,"number":1841,"title":"Support computed properties in class property declarations","user":{"login":"JsonFreeman","id":8052525,"avatar_url":"https://avatars.githubusercontent.com/u/8052525?v=3","gravatar_id":"","url":"https://api.github.com/users/JsonFreeman","html_url":"https://github.com/JsonFreeman","followers_url":"https://api.github.com/users/JsonFreeman/followers","following_url":"https://api.github.com/users/JsonFreeman/following{/other_user}","gists_url":"https://api.github.com/users/JsonFreeman/gists{/gist_id}","starred_url":"https://api.github.com/users/JsonFreeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JsonFreeman/subscriptions","organizations_url":"https://api.github.com/users/JsonFreeman/orgs","repos_url":"https://api.github.com/users/JsonFreeman/repos","events_url":"https://api.github.com/users/JsonFreeman/events{/privacy}","received_events_url":"https://api.github.com/users/JsonFreeman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/In%20Discussion","name":"In Discussion","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T23:02:21Z","updated_at":"2015-01-28T23:02:21Z","closed_at":null,"body":"We can emit computed properties class properties, using the following scheme:\r\n\r\n```ts\r\nclass C {\r\n    [\"hello\"] = 0;\r\n    static [\"bye\"] = 0;\r\n}\r\n```\r\nemits as:\r\n```js\r\nvar C = (function() {\r\n    var __t1 = \"hello\";\r\n    function C() {\r\n       this[__t1] = 0;\r\n    }\r\n    C[\"bye\"] = 0;\r\n    return C;\r\n})();\r\n```"}}