{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/5079","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/5079/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/5079/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/5079/events","html_url":"https://github.com/prettier/prettier/issues/5079","id":358755400,"node_id":"MDU6SXNzdWUzNTg3NTU0MDA=","number":5079,"title":"Prettier Mangles Flow Parameterized Function Calls","user":{"login":"stevemolitor","id":219235,"node_id":"MDQ6VXNlcjIxOTIzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/219235?v=4","gravatar_id":"","url":"https://api.github.com/users/stevemolitor","html_url":"https://github.com/stevemolitor","followers_url":"https://api.github.com/users/stevemolitor/followers","following_url":"https://api.github.com/users/stevemolitor/following{/other_user}","gists_url":"https://api.github.com/users/stevemolitor/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemolitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemolitor/subscriptions","organizations_url":"https://api.github.com/users/stevemolitor/orgs","repos_url":"https://api.github.com/users/stevemolitor/repos","events_url":"https://api.github.com/users/stevemolitor/events{/privacy}","received_events_url":"https://api.github.com/users/stevemolitor/received_events","type":"User","site_admin":false},"labels":[{"id":707748687,"node_id":"MDU6TGFiZWw3MDc3NDg2ODc=","url":"https://api.github.com/repos/prettier/prettier/labels/lang:javascript","name":"lang:javascript","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-10T19:11:28Z","updated_at":"2018-09-10T20:36:56Z","closed_at":"2018-09-10T19:29:42Z","author_association":"NONE","body":"**Prettier 1.14.2**\r\n[Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuc0DOMAEAVAFnAWzkwF5MAlOAQzBgDowAna+AYWngA8YAeAHRAAbAJYBzXDAGYAPpgEATKowDWAgHwAKASPGSQASgDcIADQgIABxjD0yUEsYQA7gAUlCNMhBUAbhGHypiAARow0ynAwAMoWNMJQosgwjACucGbxaHCMMC5hogRUyABmVIJZZgBWaJwAQmFgEdFURAAy8XAlZRUgsYxZjF7BVMEAnoLQQRaM8TAA6gEwuMgAHAAMZtMQWXNhFl7TcAM+nWbMAI4pwsx5VAVFSKXl6SBZBMJJqS9o8aKCcABFFIQeBdZ5mGAjBbyJbIABMELCwhECXYBEKXig0FOIBSWWwI08j26cAAvqSgA)\r\n```sh\r\n--parser babylon\r\n```\r\n\r\n**Input:**\r\n```jsx\r\nconst Theme = React.createContext<\"light\" | \"dark\">(\"light\");\r\n```\r\n\r\n**Output:**\r\n```jsx\r\nconst Theme = (React.createContext < \"light\") | (\"dark\" > \"light\");\r\n\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n```jsx\r\nconst Theme = React.createContext<\"light\" | \"dark\">(\"light\");\r\n\r\n```\r\n\r\nThis example is from the React context documentation [here](https://flow.org/en/docs/react/context).\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/420052075","html_url":"https://github.com/prettier/prettier/issues/5079#issuecomment-420052075","issue_url":"https://api.github.com/repos/prettier/prettier/issues/5079","id":420052075,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDA1MjA3NQ==","user":{"login":"duailibe","id":1574588,"node_id":"MDQ6VXNlcjE1NzQ1ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1574588?v=4","gravatar_id":"","url":"https://api.github.com/users/duailibe","html_url":"https://github.com/duailibe","followers_url":"https://api.github.com/users/duailibe/followers","following_url":"https://api.github.com/users/duailibe/following{/other_user}","gists_url":"https://api.github.com/users/duailibe/gists{/gist_id}","starred_url":"https://api.github.com/users/duailibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duailibe/subscriptions","organizations_url":"https://api.github.com/users/duailibe/orgs","repos_url":"https://api.github.com/users/duailibe/repos","events_url":"https://api.github.com/users/duailibe/events{/privacy}","received_events_url":"https://api.github.com/users/duailibe/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T20:36:56Z","updated_at":"2018-09-10T20:36:56Z","author_association":"MEMBER","body":"🤯"}}
{"actor":{"display_login":"duailibe"}}