{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/10154","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/10154/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/10154/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/10154/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/10154","id":165987162,"number":10154,"title":"@types/angular-ui-router|angular-ui-bootstrap|angular-translate \"Module 'angular' has no exported member 'ui'\"","user":{"login":"pocesar","id":461084,"avatar_url":"https://avatars.githubusercontent.com/u/461084?v=3","gravatar_id":"","url":"https://api.github.com/users/pocesar","html_url":"https://github.com/pocesar","followers_url":"https://api.github.com/users/pocesar/followers","following_url":"https://api.github.com/users/pocesar/following{/other_user}","gists_url":"https://api.github.com/users/pocesar/gists{/gist_id}","starred_url":"https://api.github.com/users/pocesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocesar/subscriptions","organizations_url":"https://api.github.com/users/pocesar/orgs","repos_url":"https://api.github.com/users/pocesar/repos","events_url":"https://api.github.com/users/pocesar/events{/privacy}","received_events_url":"https://api.github.com/users/pocesar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/@types","name":"@types","color":"e99695"},{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/Definition:Bug","name":"Definition:Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-17T17:45:20Z","updated_at":"2016-07-19T03:18:26Z","closed_at":"2016-07-18T22:59:32Z","body":"- [x] I tried using the latest `angular-ui-router/angular-ui-router.d.ts` file in this repo and had problems.\r\n\r\nangular-ui-router isn't working when using @types/angular-ui-router. \r\n\r\n```\"Module 'angular' has no exported member 'ui'\"```\r\n\r\nevery file now is red, and won't compile\r\n\r\nLooks like having a `<reference types=\"angular\" />` alongside a `import * as angular from 'angular';` won't work\r\n\r\nSame thing happens with angular-ui-bootstrap\r\n\r\nThe modules that depend on `@types/angular` are outright broken. I'm not using angular global variable and when I do `import * as angular from 'angular'` then try to access a module namespace, such as `angular.ui.bootstrap`, `angular.translate`, `angular.ui`, they all give the error `Module 'angular' has no exported member 'ui'`\r\n\r\nthe code below fails:\r\n\r\n```ts\r\n'use strict';\r\n\r\nimport * as angular from 'angular';\r\n\r\nclass Config {\r\n    static $inject = ['$stateProvider', '$urlRouterProvider'];\r\n\r\n    constructor($stateProvider: angular.ui.IStateProvider, $urlProvider: angular.ui.IUrlRouterProvider) {\r\n         /*...*/\r\n    }\r\n}\r\n\r\nangular.module('Module', []).config(Config);\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/233519648","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/10154#issuecomment-233519648","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/10154","id":233519648,"user":{"login":"pocesar","id":461084,"avatar_url":"https://avatars.githubusercontent.com/u/461084?v=3","gravatar_id":"","url":"https://api.github.com/users/pocesar","html_url":"https://github.com/pocesar","followers_url":"https://api.github.com/users/pocesar/followers","following_url":"https://api.github.com/users/pocesar/following{/other_user}","gists_url":"https://api.github.com/users/pocesar/gists{/gist_id}","starred_url":"https://api.github.com/users/pocesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocesar/subscriptions","organizations_url":"https://api.github.com/users/pocesar/orgs","repos_url":"https://api.github.com/users/pocesar/repos","events_url":"https://api.github.com/users/pocesar/events{/privacy}","received_events_url":"https://api.github.com/users/pocesar/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T03:18:26Z","updated_at":"2016-07-19T03:18:26Z","body":"please make a switch in tsconfig.json that makes it behave the old way, I can't refactor my project at this very moment :("}}
{"actor":{"display_login":"pocesar"}}