{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17734","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17734/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17734/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17734/events","html_url":"https://github.com/Microsoft/TypeScript/issues/17734","id":249511636,"number":17734,"title":"request: optionally disable enum/number implicit conversion","user":{"login":"Spongman","id":1088194,"avatar_url":"https://avatars2.githubusercontent.com/u/1088194?v=4","gravatar_id":"","url":"https://api.github.com/users/Spongman","html_url":"https://github.com/Spongman","followers_url":"https://api.github.com/users/Spongman/followers","following_url":"https://api.github.com/users/Spongman/following{/other_user}","gists_url":"https://api.github.com/users/Spongman/gists{/gist_id}","starred_url":"https://api.github.com/users/Spongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spongman/subscriptions","organizations_url":"https://api.github.com/users/Spongman/orgs","repos_url":"https://api.github.com/users/Spongman/repos","events_url":"https://api.github.com/users/Spongman/events{/privacy}","received_events_url":"https://api.github.com/users/Spongman/received_events","type":"User","site_admin":false},"labels":[{"id":371615203,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Working%20as%20Intended","name":"Working as Intended","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-08-11T00:23:30Z","updated_at":"2017-09-05T21:52:26Z","closed_at":null,"author_association":"NONE","body":"now that we have union types, can we please have an option to disable the enum/number implicit casts?\r\n\r\nI'd really like the following to give me an error:\r\n````\r\nenum Shape { Circle, Square, Pentagon, Pyramid }\r\nvar f = Math.sin(Shape.Square)\r\n````"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/327314270","html_url":"https://github.com/Microsoft/TypeScript/issues/17734#issuecomment-327314270","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17734","id":327314270,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars3.githubusercontent.com/u/8000722?v=4","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2017-09-05T21:52:26Z","updated_at":"2017-09-05T21:52:26Z","author_association":"CONTRIBUTOR","body":"this one specifically is wrong, but the general rule stands. look at things like NodeFlags."}}
{"actor":{"display_login":"mhegazy"}}