{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/524","labels_url":"https://api.github.com/repos/facebook/flow/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/524/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/524/events","html_url":"https://github.com/facebook/flow/issues/524","id":88800906,"number":524,"title":"Number types","user":{"login":"mroch","id":3012,"avatar_url":"https://avatars.githubusercontent.com/u/3012?v=3","gravatar_id":"","url":"https://api.github.com/users/mroch","html_url":"https://github.com/mroch","followers_url":"https://api.github.com/users/mroch/followers","following_url":"https://api.github.com/users/mroch/following{/other_user}","gists_url":"https://api.github.com/users/mroch/gists{/gist_id}","starred_url":"https://api.github.com/users/mroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroch/subscriptions","organizations_url":"https://api.github.com/users/mroch/orgs","repos_url":"https://api.github.com/users/mroch/repos","events_url":"https://api.github.com/users/mroch/events{/privacy}","received_events_url":"https://api.github.com/users/mroch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mroch","id":3012,"avatar_url":"https://avatars.githubusercontent.com/u/3012?v=3","gravatar_id":"","url":"https://api.github.com/users/mroch","html_url":"https://github.com/mroch","followers_url":"https://api.github.com/users/mroch/followers","following_url":"https://api.github.com/users/mroch/following{/other_user}","gists_url":"https://api.github.com/users/mroch/gists{/gist_id}","starred_url":"https://api.github.com/users/mroch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroch/subscriptions","organizations_url":"https://api.github.com/users/mroch/orgs","repos_url":"https://api.github.com/users/mroch/repos","events_url":"https://api.github.com/users/mroch/events{/privacy}","received_events_url":"https://api.github.com/users/mroch/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-06-16T18:17:18Z","updated_at":"2015-06-26T22:56:57Z","closed_at":"2015-06-26T22:56:57Z","body":"Flow supports \"string types\", useful for enums and method overloading, e.g.\r\n\r\n```\r\ninterface Document {\r\n  createElement(tagName: \"div\"): HTMLDivElement;\r\n  createElement(tagName: \"span\"): HTMLSpanElement;\r\n  createElement(tagName: \"canvas\"): HTMLCanvasElement;\r\n  createElement(tagName: string): HTMLElement;\r\n}\r\n```\r\n\r\nIt should also support number types, e.g. `function showItems(num: 1 | 5 | 10)`"}}