{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3165","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3165/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3165/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3165/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3165","id":76326739,"number":3165,"title":"void type field on class","user":{"login":"wgebczyk","id":1898040,"avatar_url":"https://avatars.githubusercontent.com/u/1898040?v=3","gravatar_id":"","url":"https://api.github.com/users/wgebczyk","html_url":"https://github.com/wgebczyk","followers_url":"https://api.github.com/users/wgebczyk/followers","following_url":"https://api.github.com/users/wgebczyk/following{/other_user}","gists_url":"https://api.github.com/users/wgebczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/wgebczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wgebczyk/subscriptions","organizations_url":"https://api.github.com/users/wgebczyk/orgs","repos_url":"https://api.github.com/users/wgebczyk/repos","events_url":"https://api.github.com/users/wgebczyk/events{/privacy}","received_events_url":"https://api.github.com/users/wgebczyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By%20Design","name":"By Design","color":"fbca04"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-14T11:24:09Z","updated_at":"2015-05-15T16:51:59Z","closed_at":"2015-05-14T13:39:52Z","body":"This seems to be valid (tested in playground):\r\n\r\n```\r\nclass Greeter {\r\n    greeting1: void;\r\n    greeting2: () => void;\r\n}\r\n\r\nvar greeter = new Greeter();\r\n```\r\n\r\nCan you explain me what is gain to allow declaration of \"greeting1\" field?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/102457477","html_url":"https://github.com/Microsoft/TypeScript/issues/3165#issuecomment-102457477","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3165","id":102457477,"user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T16:51:59Z","updated_at":"2015-05-15T16:51:59Z","body":"See comments deep in thread #185. Note: this is not an endorsement of using `T|void` :smiley: "}}