{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/938","labels_url":"https://api.github.com/repos/facebook/flow/issues/938/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/938/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/938/events","html_url":"https://github.com/facebook/flow/issues/938","id":111040392,"number":938,"title":"Allow importing types from flow's `lib` into a namespace","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-12T19:36:05Z","updated_at":"2015-10-13T01:23:09Z","closed_at":null,"body":"Currently flow exposes all the type definitions from https://github.com/facebook/flow/tree/master/lib globally and overloading some of require extra file boilerplate (see https://github.com/facebook/flow/issues/937#issuecomment-147498365) it would be nice if individual typedefs could be imported same as from other modules. I would suggest exposing them from `flow/*` namespace so one could do:\r\n\r\n```js\r\nimport * as DOM from \"flow/dom\";\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/147566707","html_url":"https://github.com/facebook/flow/issues/938#issuecomment-147566707","issue_url":"https://api.github.com/repos/facebook/flow/issues/938","id":147566707,"user":{"login":"samwgoldman","id":254842,"avatar_url":"https://avatars.githubusercontent.com/u/254842?v=3","gravatar_id":"","url":"https://api.github.com/users/samwgoldman","html_url":"https://github.com/samwgoldman","followers_url":"https://api.github.com/users/samwgoldman/followers","following_url":"https://api.github.com/users/samwgoldman/following{/other_user}","gists_url":"https://api.github.com/users/samwgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/samwgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwgoldman/subscriptions","organizations_url":"https://api.github.com/users/samwgoldman/orgs","repos_url":"https://api.github.com/users/samwgoldman/repos","events_url":"https://api.github.com/users/samwgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/samwgoldman/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T01:23:09Z","updated_at":"2015-10-13T01:23:09Z","body":"Extending the globally declared DOM types seems like a misfeature to me, regardless. There are definitely cases where Flow's type declarations are incomplete, and people have rightfully complained that it's difficult to work around that, but what you're trying to do here doesn't seem like a good idea. Are you also modifying the global EventTarget at runtime?"}}