{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12361","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12361/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12361/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12361/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12361","id":186160181,"number":12361,"title":"Fix https://github.com/Microsoft/TypeScript/issues/11916: Make lodash a module","user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-30T20:17:35Z","updated_at":"2016-10-31T22:22:11Z","closed_at":"2016-10-31T20:39:11Z","pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12361","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12361","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12361.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12361.patch"},"body":"Fixes https://github.com/Microsoft/TypeScript/issues/11916\n"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/257438145","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12361#issuecomment-257438145","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12361","id":257438145,"user":{"login":"khoomeister","id":681288,"avatar_url":"https://avatars.githubusercontent.com/u/681288?v=3","gravatar_id":"","url":"https://api.github.com/users/khoomeister","html_url":"https://github.com/khoomeister","followers_url":"https://api.github.com/users/khoomeister/followers","following_url":"https://api.github.com/users/khoomeister/following{/other_user}","gists_url":"https://api.github.com/users/khoomeister/gists{/gist_id}","starred_url":"https://api.github.com/users/khoomeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoomeister/subscriptions","organizations_url":"https://api.github.com/users/khoomeister/orgs","repos_url":"https://api.github.com/users/khoomeister/repos","events_url":"https://api.github.com/users/khoomeister/events{/privacy}","received_events_url":"https://api.github.com/users/khoomeister/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T22:22:11Z","updated_at":"2016-10-31T22:22:11Z","body":"Hey @mhegazy, I just updated to these new lodash types and mixins don't work anymore.\r\n\r\ne.g.\r\n\r\nIn our implementation:\r\n\r\n```typescript\r\nimport { mixin } from 'lodash'\r\n\r\nfunction doSomethingCool(...) {\r\n  ...\r\n}\r\n\r\nmixin({\r\n  doSomethingCool\r\n})\r\n```\r\n\r\nIn our typings file:\r\n\r\n```typescript\r\ndeclare module _ {\r\n  interface LoDashStatic {\r\n    doSomethingCool<T>(...): ...\r\n  }\r\n}\r\n```\r\n\r\nIn a file that consumes it:\r\n\r\n```typescript\r\nimport {doSomethingCool} from 'lodash'\r\n```\r\n\r\nI get error:\r\n\r\n```\r\nModule \"/Users/blah/app/node_modules/@types/lodash/index\" has no exported member 'doSomethingCool'.\r\n```\r\n\r\nThis worked perfectly for a long time but this change now displays this compile-time error.\r\n\r\nIs this a legitimate error or does PEKBAC?"}}
{"actor":{"display_login":"khoomeister"}}