{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1860","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/1860/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1860/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1860/events","html_url":"https://github.com/facebook/flow/issues/1860","id":157284091,"number":1860,"title":"Annotations for ...args ?","user":{"login":"dudeinthemirror","id":981638,"avatar_url":"https://avatars.githubusercontent.com/u/981638?v=3","gravatar_id":"","url":"https://api.github.com/users/dudeinthemirror","html_url":"https://github.com/dudeinthemirror","followers_url":"https://api.github.com/users/dudeinthemirror/followers","following_url":"https://api.github.com/users/dudeinthemirror/following{/other_user}","gists_url":"https://api.github.com/users/dudeinthemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/dudeinthemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudeinthemirror/subscriptions","organizations_url":"https://api.github.com/users/dudeinthemirror/orgs","repos_url":"https://api.github.com/users/dudeinthemirror/repos","events_url":"https://api.github.com/users/dudeinthemirror/events{/privacy}","received_events_url":"https://api.github.com/users/dudeinthemirror/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-27T20:23:28Z","updated_at":"2016-05-27T20:23:28Z","closed_at":null,"body":"(also posted on SO : http://stackoverflow.com/questions/37490255/how-do-i-annotate-this-function-for-flow )\r\n\r\nI have this function in a file where I use Flow\r\n\r\n```\r\n// @flow\r\n...\r\n  static promiseWrapper(fn, ...args) {\r\n    return new Promise(\r\n      async function(resolve, reject) {\r\n        try {\r\n          await fn(...args);\r\n          resolve();\r\n        } catch (e) {\r\n          reject(e);\r\n        }\r\n      }\r\n    )\r\n  }\r\n...\r\n```\r\n\r\nHow would I go about annotating this ? \r\n\r\nThanks."}}
{"actor":{"display_login":"dudeinthemirror"}}