{"action":"created","issue":{"url":"https://api.github.com/repos/adrai/node-cqrs-domain/issues/114","repository_url":"https://api.github.com/repos/adrai/node-cqrs-domain","labels_url":"https://api.github.com/repos/adrai/node-cqrs-domain/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/adrai/node-cqrs-domain/issues/114/comments","events_url":"https://api.github.com/repos/adrai/node-cqrs-domain/issues/114/events","html_url":"https://github.com/adrai/node-cqrs-domain/issues/114","id":278666280,"node_id":"MDU6SXNzdWUyNzg2NjYyODA=","number":114,"title":"TypeScript mappings","user":{"login":"blissi","id":13705486,"node_id":"MDQ6VXNlcjEzNzA1NDg2","avatar_url":"https://avatars1.githubusercontent.com/u/13705486?v=4","gravatar_id":"","url":"https://api.github.com/users/blissi","html_url":"https://github.com/blissi","followers_url":"https://api.github.com/users/blissi/followers","following_url":"https://api.github.com/users/blissi/following{/other_user}","gists_url":"https://api.github.com/users/blissi/gists{/gist_id}","starred_url":"https://api.github.com/users/blissi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blissi/subscriptions","organizations_url":"https://api.github.com/users/blissi/orgs","repos_url":"https://api.github.com/users/blissi/repos","events_url":"https://api.github.com/users/blissi/events{/privacy}","received_events_url":"https://api.github.com/users/blissi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-02T08:15:16Z","updated_at":"2018-07-30T09:50:46Z","closed_at":"2017-12-02T09:15:19Z","author_association":"NONE","body":"Hallo Adriano,\r\nI created TypeScript mappings for cqrs-domain:\r\nhttps://github.com/blissi/DefinitelyTyped/blob/master/types/cqrs-domain/index.d.ts\r\n\r\nAre you interested in integrating these into your lib?\r\nOtherwise I would post it to @types.\r\n\r\nSteven"},"comment":{"url":"https://api.github.com/repos/adrai/node-cqrs-domain/issues/comments/408809525","html_url":"https://github.com/adrai/node-cqrs-domain/issues/114#issuecomment-408809525","issue_url":"https://api.github.com/repos/adrai/node-cqrs-domain/issues/114","id":408809525,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODgwOTUyNQ==","user":{"login":"beenotung","id":6007292,"node_id":"MDQ6VXNlcjYwMDcyOTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6007292?v=4","gravatar_id":"","url":"https://api.github.com/users/beenotung","html_url":"https://github.com/beenotung","followers_url":"https://api.github.com/users/beenotung/followers","following_url":"https://api.github.com/users/beenotung/following{/other_user}","gists_url":"https://api.github.com/users/beenotung/gists{/gist_id}","starred_url":"https://api.github.com/users/beenotung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beenotung/subscriptions","organizations_url":"https://api.github.com/users/beenotung/orgs","repos_url":"https://api.github.com/users/beenotung/repos","events_url":"https://api.github.com/users/beenotung/events{/privacy}","received_events_url":"https://api.github.com/users/beenotung/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T09:50:46Z","updated_at":"2018-07-30T09:50:46Z","author_association":"NONE","body":"@blissi the typescript mappings seems outdated.\r\nbelow sample passed the type check but failed in runtime:\r\n```typescript\r\nimport * as Domain from 'cqrs-domain'\r\n\r\nlet domain = Domain({\r\n    domainPath: '/tmp/demo',\r\n})\r\n\r\ndomain.onEvent(ev => {\r\n    console.log({ev})\r\n});\r\ndomain.init((err, warnings) => {\r\n    console.log({err, warnings})\r\n})\r\n// console.log(domain.getInfo());\r\n```\r\n\r\nReceived Error: Error: `No structure loaded for /tmp/demo!`\r\n\r\n/tmp/demo is an empty folder"}}
{"actor":{"display_login":"beenotung"}}