{"action":"created","issue":{"url":"https://api.github.com/repos/noodlecrate/poseidon/issues/15","repository_url":"https://api.github.com/repos/noodlecrate/poseidon","labels_url":"https://api.github.com/repos/noodlecrate/poseidon/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/noodlecrate/poseidon/issues/15/comments","events_url":"https://api.github.com/repos/noodlecrate/poseidon/issues/15/events","html_url":"https://github.com/noodlecrate/poseidon/issues/15","id":168092301,"number":15,"title":"Unable to reference entities","user":{"login":"Jameskmonger","id":2037007,"avatar_url":"https://avatars.githubusercontent.com/u/2037007?v=3","gravatar_id":"","url":"https://api.github.com/users/Jameskmonger","html_url":"https://github.com/Jameskmonger","followers_url":"https://api.github.com/users/Jameskmonger/followers","following_url":"https://api.github.com/users/Jameskmonger/following{/other_user}","gists_url":"https://api.github.com/users/Jameskmonger/gists{/gist_id}","starred_url":"https://api.github.com/users/Jameskmonger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jameskmonger/subscriptions","organizations_url":"https://api.github.com/users/Jameskmonger/orgs","repos_url":"https://api.github.com/users/Jameskmonger/repos","events_url":"https://api.github.com/users/Jameskmonger/events{/privacy}","received_events_url":"https://api.github.com/users/Jameskmonger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-28T13:14:09Z","updated_at":"2016-07-28T16:22:48Z","closed_at":"2016-07-28T16:05:10Z","body":"Hi @jamesrichford,\r\n\r\nI'm struggling with referencing [poseidon-entities](https://github.com/noodlecrate/poseidon-entities) in this project.\r\n\r\nI have installed it via `npm install noodlecrate-poseidon-entities --save`, and so it gets [typings.d.ts](https://github.com/noodlecrate/poseidon-entities/blob/master/typings.d.ts) referenced correctly (as it's given in the other project's [package.json](https://github.com/noodlecrate/poseidon-entities/blob/master/package.json)).\r\n\r\nHowever when I then try to use the entities, like this:\r\n\r\n    import * as Entities from 'noodlecrate-poseidon-entities';\r\n\r\nI get these errors:\r\n\r\n>TS Error\r\n> File 'C:/Users/james.monger/Desktop/js/p/poseidon/node_modules/noodlecrate-poseidon-entities/typings.d.ts' is not a module.\r\n> at line 3 col 27 in src\\managers\\brand-manager.ts\r\n>\r\n>TS Error\r\n> Exported external package typings file 'C:/Users/james.monger/Desktop/js/p/poseidon/node_modules/noodlecrate-poseidon-entities/typings.d.ts' is not a module. Please contact the package author to update the package definition.\r\n> at line 3 col 27 in src\\managers\\brand-manager.ts"},"comment":{"url":"https://api.github.com/repos/noodlecrate/poseidon/issues/comments/235947385","html_url":"https://github.com/noodlecrate/poseidon/issues/15#issuecomment-235947385","issue_url":"https://api.github.com/repos/noodlecrate/poseidon/issues/15","id":235947385,"user":{"login":"Jameskmonger","id":2037007,"avatar_url":"https://avatars.githubusercontent.com/u/2037007?v=3","gravatar_id":"","url":"https://api.github.com/users/Jameskmonger","html_url":"https://github.com/Jameskmonger","followers_url":"https://api.github.com/users/Jameskmonger/followers","following_url":"https://api.github.com/users/Jameskmonger/following{/other_user}","gists_url":"https://api.github.com/users/Jameskmonger/gists{/gist_id}","starred_url":"https://api.github.com/users/Jameskmonger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jameskmonger/subscriptions","organizations_url":"https://api.github.com/users/Jameskmonger/orgs","repos_url":"https://api.github.com/users/Jameskmonger/repos","events_url":"https://api.github.com/users/Jameskmonger/events{/privacy}","received_events_url":"https://api.github.com/users/Jameskmonger/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T16:22:48Z","updated_at":"2016-07-28T16:22:48Z","body":"Of course! A couple of changes:\r\n\r\n* Removing the `declare module \"...\"` from the typings file\r\n* Exporting the objects directly\r\n\r\nYou can see the working typings version here: https://github.com/noodlecrate/poseidon-entities/blob/master/typings.d.ts\r\n\r\n@remojansen "}}
{"actor":{"display_login":"Jameskmonger"}}