{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fbjs/issues/23","labels_url":"https://api.github.com/repos/facebook/fbjs/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fbjs/issues/23/comments","events_url":"https://api.github.com/repos/facebook/fbjs/issues/23/events","html_url":"https://github.com/facebook/fbjs/issues/23","id":98240922,"number":23,"title":"npm'd version fails flow","user":{"login":"jaredly","id":112170,"avatar_url":"https://avatars.githubusercontent.com/u/112170?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredly","html_url":"https://github.com/jaredly","followers_url":"https://api.github.com/users/jaredly/followers","following_url":"https://api.github.com/users/jaredly/following{/other_user}","gists_url":"https://api.github.com/users/jaredly/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredly/subscriptions","organizations_url":"https://api.github.com/users/jaredly/orgs","repos_url":"https://api.github.com/users/jaredly/repos","events_url":"https://api.github.com/users/jaredly/events{/privacy}","received_events_url":"https://api.github.com/users/jaredly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T19:09:24Z","updated_at":"2015-07-30T19:14:18Z","closed_at":null,"body":"The transpiled version has stuff like:\r\n\r\n```js\r\nfunction Deferred /*:: <Tvalue, Treason>*/() {\r\n  // stuff ...\r\n}\r\n\r\nDeferred.prototype.resolve = function resolve(value /*: Tvalue*/) /*: void*/ {\r\n  this._settled = true;\r\n  this._resolve(value);\r\n};\r\n```\r\n\r\nWhich makes `Tvalue` undefined, b/c it's not in the same scope.\r\nNot sure if this is a flow bug or not, but it makes it so I can't use this lib :("},"comment":{"url":"https://api.github.com/repos/facebook/fbjs/issues/comments/126443098","html_url":"https://github.com/facebook/fbjs/issues/23#issuecomment-126443098","issue_url":"https://api.github.com/repos/facebook/fbjs/issues/23","id":126443098,"user":{"login":"jaredly","id":112170,"avatar_url":"https://avatars.githubusercontent.com/u/112170?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredly","html_url":"https://github.com/jaredly","followers_url":"https://api.github.com/users/jaredly/followers","following_url":"https://api.github.com/users/jaredly/following{/other_user}","gists_url":"https://api.github.com/users/jaredly/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredly/subscriptions","organizations_url":"https://api.github.com/users/jaredly/orgs","repos_url":"https://api.github.com/users/jaredly/repos","events_url":"https://api.github.com/users/jaredly/events{/privacy}","received_events_url":"https://api.github.com/users/jaredly/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T19:14:18Z","updated_at":"2015-07-30T19:14:18Z","body":"Maybe a reasonable fix would be to include the un-transpiled code as well in the npm version, so that flow/babel-using clients can use the original stuff."}}