{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/ts2fable/issues/19","repository_url":"https://api.github.com/repos/fable-compiler/ts2fable","labels_url":"https://api.github.com/repos/fable-compiler/ts2fable/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/ts2fable/issues/19/comments","events_url":"https://api.github.com/repos/fable-compiler/ts2fable/issues/19/events","html_url":"https://github.com/fable-compiler/ts2fable/pull/19","id":266660581,"number":19,"title":"WIP rewrite ts2fable in Fable","user":{"login":"ctaggart","id":80104,"avatar_url":"https://avatars2.githubusercontent.com/u/80104?v=4","gravatar_id":"","url":"https://api.github.com/users/ctaggart","html_url":"https://github.com/ctaggart","followers_url":"https://api.github.com/users/ctaggart/followers","following_url":"https://api.github.com/users/ctaggart/following{/other_user}","gists_url":"https://api.github.com/users/ctaggart/gists{/gist_id}","starred_url":"https://api.github.com/users/ctaggart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctaggart/subscriptions","organizations_url":"https://api.github.com/users/ctaggart/orgs","repos_url":"https://api.github.com/users/ctaggart/repos","events_url":"https://api.github.com/users/ctaggart/events{/privacy}","received_events_url":"https://api.github.com/users/ctaggart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-10-18T22:19:15Z","updated_at":"2017-10-25T20:40:39Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/fable-compiler/ts2fable/pulls/19","html_url":"https://github.com/fable-compiler/ts2fable/pull/19","diff_url":"https://github.com/fable-compiler/ts2fable/pull/19.diff","patch_url":"https://github.com/fable-compiler/ts2fable/pull/19.patch"},"body":"I started rewriting ts2fable using Fable. I am using the TypeScript API that I imported using the TypeScript based ts2fable after I hacked it a bit. My goal is to be able to import the API from my new version. That is probably a couple days of work.\r\n\r\nIt is early work-in-progress, but I wanted to let people know.\r\n\r\nTODO:\r\n- [x] Is webpack even needed for this Node app? (No, switched to fable-splitter)\r\n- [x] map method signatures\r\n- [x] map property signatures\r\n- [x] merge same modules\r\n- [x] merge same interfaces\r\n- [x] map function signatures\r\n- [x] add functions to Globals type\r\n- [x] add generic tic in interface\r\n- [x] map class declarations\r\n- [x] map arrays\r\n- [x] map enums with string values\r\n- [x] map enum with int and undefined\r\n- [x] ParamArray\r\n- [x] Date to DateTime\r\n- [x] map index signatures\r\n- [x] map [String Literal Types](https://www.typescriptlang.org/docs/handbook/advanced-types.html)\r\n- [x] map global variables\r\n- [ ] map global variables [to importAll](https://github.com/fable-compiler/Fable/issues/1200#issuecomment-339335379)\r\n- [ ] map export statements\r\n- [ ] map `this` references, left as `obj`\r\n- [ ] map CallSignature\r\n- [ ] map ConstructSignature\r\n- [ ] erase unions with duplicate types (from enum types)\r\n"},"comment":{"url":"https://api.github.com/repos/fable-compiler/ts2fable/issues/comments/339464405","html_url":"https://github.com/fable-compiler/ts2fable/pull/19#issuecomment-339464405","issue_url":"https://api.github.com/repos/fable-compiler/ts2fable/issues/19","id":339464405,"user":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars0.githubusercontent.com/u/8275461?v=4","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T20:40:39Z","updated_at":"2017-10-25T20:40:39Z","author_association":"OWNER","body":"Awesome @ctaggart! Thanks a lot for all your work and enjoy your vacation! 😎 "}}
{"actor":{"display_login":"alfonsogarciacaro"}}