{"action":"closed","issue":{"url":"https://api.github.com/repos/transform-it/transform-json-types/issues/11","repository_url":"https://api.github.com/repos/transform-it/transform-json-types","labels_url":"https://api.github.com/repos/transform-it/transform-json-types/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/transform-it/transform-json-types/issues/11/comments","events_url":"https://api.github.com/repos/transform-it/transform-json-types/issues/11/events","html_url":"https://github.com/transform-it/transform-json-types/issues/11","id":305949289,"number":11,"title":"Bug: double definitions","user":{"login":"asci","id":778908,"avatar_url":"https://avatars0.githubusercontent.com/u/778908?v=4","gravatar_id":"","url":"https://api.github.com/users/asci","html_url":"https://github.com/asci","followers_url":"https://api.github.com/users/asci/followers","following_url":"https://api.github.com/users/asci/following{/other_user}","gists_url":"https://api.github.com/users/asci/gists{/gist_id}","starred_url":"https://api.github.com/users/asci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asci/subscriptions","organizations_url":"https://api.github.com/users/asci/orgs","repos_url":"https://api.github.com/users/asci/repos","events_url":"https://api.github.com/users/asci/events{/privacy}","received_events_url":"https://api.github.com/users/asci/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T14:29:37Z","updated_at":"2018-03-16T14:44:03Z","closed_at":"2018-03-16T14:44:03Z","author_association":"NONE","body":"Hello,\r\n\r\nlooks like I found a bug:\r\n```js\r\n    const result = transform(`\r\n    {\r\n      \"test\": {\r\n        \"key\": \"value\"\r\n      }\r\n    }\r\n    `, {\r\n      lang: 'typescript',\r\n      objectName: 'Root'\r\n    });\r\n    console.log(result);\r\n```\r\nwill create output like:\r\n\r\n```ts\r\ninterface Root {\r\n  test: Test;\r\n}\r\n\r\ninterface Root {\r\n  test: Test;\r\n}\r\n\r\ninterface Test {\r\n  key: string;\r\n}\r\n```\r\n\r\nthe bug was introduced here: https://github.com/transform-it/transform-json-types/commit/f2189a1aafd4980b0bc4c168b110aea788ddc5a6#diff-1fdf421c05c1140f6d71444ea2b27638R333\r\n\r\nIf you remove `+` will work as expected (as I understand)\r\n\r\nCheers!"}}
{"actor":{"display_login":"asci"}}