{"action":"created","issue":{"url":"https://api.github.com/repos/typings/core/issues/165","repository_url":"https://api.github.com/repos/typings/core","labels_url":"https://api.github.com/repos/typings/core/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/typings/core/issues/165/comments","events_url":"https://api.github.com/repos/typings/core/issues/165/events","html_url":"https://github.com/typings/core/issues/165","id":199750374,"number":165,"title":"removing the need of `typings/registry/global`","user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-10T07:25:59Z","updated_at":"2017-01-10T19:38:57Z","closed_at":null,"body":"I'm doing this locally and it seems to work well:\r\n\r\n```sh\r\n// get a package with module typings\r\nnpm i my-module-with-typing\r\ntyping i npm~some-module\r\n```\r\n\r\n```ts\r\n// custom-typings/my-module-with-typing.d.ts\r\nexport * from 'my-module-with-typings'\r\nexport as namespace MyModuleWithTypings\r\n\r\n// custom-typings/some-module\r\nexport * from 'some-module'\r\nexport as namespace SomeModule\r\n```\r\n\r\nMaybe `typings` can create those custom typings files directly?\r\nIn this case, we can reduce the registry by half.\r\n\r\nOf course, one issue is how to determine the module's namespace.\r\nHow will DT do it for `@types`?\r\n\r\nLately, I'm working on `globalify` and released my own `@unional/globalify` which I can define my own global namespace variable.\r\nIt can help but still need to deal with libraries that already release global umd build with special namespace variable."},"comment":{"url":"https://api.github.com/repos/typings/core/issues/comments/271675857","html_url":"https://github.com/typings/core/issues/165#issuecomment-271675857","issue_url":"https://api.github.com/repos/typings/core/issues/165","id":271675857,"user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"created_at":"2017-01-10T19:38:57Z","updated_at":"2017-01-10T19:38:57Z","body":"Sure.\r\n\r\nWhen  https://github.com/Microsoft/types-publisher/issues/4 lands, the `types/*` repos can remove the global typings?\r\n"}}
{"actor":{"display_login":"unional"}}