{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/711","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/711/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/711/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/711/events","html_url":"https://github.com/facebook/immutable-js/issues/711","id":120365003,"number":711,"title":"Generate definitions in index.d.ts","user":{"login":"dlouwers","id":143664,"avatar_url":"https://avatars.githubusercontent.com/u/143664?v=3","gravatar_id":"","url":"https://api.github.com/users/dlouwers","html_url":"https://github.com/dlouwers","followers_url":"https://api.github.com/users/dlouwers/followers","following_url":"https://api.github.com/users/dlouwers/following{/other_user}","gists_url":"https://api.github.com/users/dlouwers/gists{/gist_id}","starred_url":"https://api.github.com/users/dlouwers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlouwers/subscriptions","organizations_url":"https://api.github.com/users/dlouwers/orgs","repos_url":"https://api.github.com/users/dlouwers/repos","events_url":"https://api.github.com/users/dlouwers/events{/privacy}","received_events_url":"https://api.github.com/users/dlouwers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/facebook/immutable-js/milestones/2","html_url":"https://github.com/facebook/immutable-js/milestones/5.0","labels_url":"https://api.github.com/repos/facebook/immutable-js/milestones/2/labels","id":1171461,"number":2,"title":"5.0","description":"","creator":{"login":"leebyron","id":50130,"avatar_url":"https://avatars.githubusercontent.com/u/50130?v=3","gravatar_id":"","url":"https://api.github.com/users/leebyron","html_url":"https://github.com/leebyron","followers_url":"https://api.github.com/users/leebyron/followers","following_url":"https://api.github.com/users/leebyron/following{/other_user}","gists_url":"https://api.github.com/users/leebyron/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyron/subscriptions","organizations_url":"https://api.github.com/users/leebyron/orgs","repos_url":"https://api.github.com/users/leebyron/repos","events_url":"https://api.github.com/users/leebyron/events{/privacy}","received_events_url":"https://api.github.com/users/leebyron/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-06-18T21:09:20Z","updated_at":"2015-12-16T04:38:27Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-12-04T09:35:31Z","updated_at":"2015-12-16T15:09:27Z","closed_at":null,"body":"Apparently it's going to be standard for TypeScript to look for definitions in `index.d.ts`. Perhaps `Immutable.d.ts` could be renamed to `index.d.ts`?"},"comment":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/comments/165136063","html_url":"https://github.com/facebook/immutable-js/issues/711#issuecomment-165136063","issue_url":"https://api.github.com/repos/facebook/immutable-js/issues/711","id":165136063,"user":{"login":"xogeny","id":1498808,"avatar_url":"https://avatars.githubusercontent.com/u/1498808?v=3","gravatar_id":"","url":"https://api.github.com/users/xogeny","html_url":"https://github.com/xogeny","followers_url":"https://api.github.com/users/xogeny/followers","following_url":"https://api.github.com/users/xogeny/following{/other_user}","gists_url":"https://api.github.com/users/xogeny/gists{/gist_id}","starred_url":"https://api.github.com/users/xogeny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xogeny/subscriptions","organizations_url":"https://api.github.com/users/xogeny/orgs","repos_url":"https://api.github.com/users/xogeny/repos","events_url":"https://api.github.com/users/xogeny/events{/privacy}","received_events_url":"https://api.github.com/users/xogeny/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T15:09:27Z","updated_at":"2015-12-16T15:09:27Z","body":"A data point.  I tried adding `typings` to `package.json` and pointing it to `dist/immutable.d.ts`.  But it failed.  I suspect that the version of `immutable.d.ts` that is present there is not \"framed\" properly for what `tsc` needs.  As such, I think a separate `.d.ts` file will be required.  I think I've seen this before and I suspect (although I don't know for sure) that all the is really required is to create a new file that uses a `<reference.../>` at the top to the current file and adds some additional details about the module.  I'll play around with it.\r\n\r\nBut I want to add that, in my opinion, it is **much** better to include an up to date `.d.ts` file in the NPM repository along with the `typings` field in `package.json` vs. adding the declarations file to `DefinitelyTyped`.  It makes use of NPM modules much easier and makes it much easier to avoid version skew."}}