{"action":"created","issue":{"url":"https://api.github.com/repos/jeremyfa/node-ts2hx/issues/2","labels_url":"https://api.github.com/repos/jeremyfa/node-ts2hx/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jeremyfa/node-ts2hx/issues/2/comments","events_url":"https://api.github.com/repos/jeremyfa/node-ts2hx/issues/2/events","html_url":"https://github.com/jeremyfa/node-ts2hx/issues/2","id":60286651,"number":2,"title":"Empty output for variable-style definitions","user":{"login":"laurence-myers","id":6336048,"avatar_url":"https://avatars.githubusercontent.com/u/6336048?v=3","gravatar_id":"","url":"https://api.github.com/users/laurence-myers","html_url":"https://github.com/laurence-myers","followers_url":"https://api.github.com/users/laurence-myers/followers","following_url":"https://api.github.com/users/laurence-myers/following{/other_user}","gists_url":"https://api.github.com/users/laurence-myers/gists{/gist_id}","starred_url":"https://api.github.com/users/laurence-myers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurence-myers/subscriptions","organizations_url":"https://api.github.com/users/laurence-myers/orgs","repos_url":"https://api.github.com/users/laurence-myers/repos","events_url":"https://api.github.com/users/laurence-myers/events{/privacy}","received_events_url":"https://api.github.com/users/laurence-myers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T01:04:33Z","updated_at":"2015-03-09T07:55:05Z","closed_at":null,"body":"A simple example:\r\nhttps://github.com/borisyankov/DefinitelyTyped/blob/master/add2home/add2home.d.ts\r\nDefines one variable, an object with three functions. The converted output is empty:\r\n\r\n    package;\r\n\r\n\r\n    //# lineMapping="},"comment":{"url":"https://api.github.com/repos/jeremyfa/node-ts2hx/issues/comments/77812483","html_url":"https://github.com/jeremyfa/node-ts2hx/issues/2#issuecomment-77812483","issue_url":"https://api.github.com/repos/jeremyfa/node-ts2hx/issues/2","id":77812483,"user":{"login":"jeremyfa","id":164094,"avatar_url":"https://avatars.githubusercontent.com/u/164094?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyfa","html_url":"https://github.com/jeremyfa","followers_url":"https://api.github.com/users/jeremyfa/followers","following_url":"https://api.github.com/users/jeremyfa/following{/other_user}","gists_url":"https://api.github.com/users/jeremyfa/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyfa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyfa/subscriptions","organizations_url":"https://api.github.com/users/jeremyfa/orgs","repos_url":"https://api.github.com/users/jeremyfa/repos","events_url":"https://api.github.com/users/jeremyfa/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyfa/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T07:55:05Z","updated_at":"2015-03-09T07:55:05Z","body":"Hi Laurence,\r\n\r\nThis output is expected as the construct your are providing is not supported by ts2hx. Variable definitions at the root of the file are ignored because there is no equivalent in Haxe. Everything should be encapsuled in a class or interface if you want to transpile it to Haxe properly.\r\n\r\nMore than that: ts2hx is not expecting a Typescript definition file but a real Typescript file with implemented method bodies.\r\n\r\nI hope this helps :)"}}