{"action":"opened","issue":{"url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/305","repository_url":"https://api.github.com/repos/AssemblyScript/assemblyscript","labels_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/305/comments","events_url":"https://api.github.com/repos/AssemblyScript/assemblyscript/issues/305/events","html_url":"https://github.com/AssemblyScript/assemblyscript/issues/305","id":373668317,"node_id":"MDU6SXNzdWUzNzM2NjgzMTc=","number":305,"title":"TypeScript compatibility","user":{"login":"alveko","id":556036,"node_id":"MDQ6VXNlcjU1NjAzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/556036?v=4","gravatar_id":"","url":"https://api.github.com/users/alveko","html_url":"https://github.com/alveko","followers_url":"https://api.github.com/users/alveko/followers","following_url":"https://api.github.com/users/alveko/following{/other_user}","gists_url":"https://api.github.com/users/alveko/gists{/gist_id}","starred_url":"https://api.github.com/users/alveko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alveko/subscriptions","organizations_url":"https://api.github.com/users/alveko/orgs","repos_url":"https://api.github.com/users/alveko/repos","events_url":"https://api.github.com/users/alveko/events{/privacy}","received_events_url":"https://api.github.com/users/alveko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-24T20:41:10Z","updated_at":"2018-10-24T20:41:10Z","closed_at":null,"author_association":"NONE","body":"What's currently supported and what's not in terms of the TypeScript spec, see [1]?\\\r\nIt's understood that the dynamic features are not there. What about the rest?\r\n\r\nBased on other issues, nested object initialization is not currently supported.\r\nI also get issues with ```interface```, see [2].\r\n\r\n[1] https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md\r\n[2] a simple ts file\r\n```\r\nexport interface xevent {\r\n    x: i32;\r\n}\r\n\r\nexport function foo(e: xevent): xevent {\r\n    return e;\r\n}\r\n```\r\nleads to\r\n```\r\nERROR TS2304: Cannot find name 'xevent'.\r\n\r\n export function handle(e: xevent): xevent {\r\n                           ~~~~~~\r\n in dummy.ts(5,26)\r\n\r\nERROR: Compile error\r\n    at Error (native)\r\n    at Object.main (/wp/assemblyscript/cli/asc.js:472:21)\r\n    at Object.<anonymous> (/wp/assemblyscript/bin/asc:3:60)\r\n    at Module._compile (module.js:577:32)\r\n    at Object.Module._extensions..js (module.js:586:10)\r\n    at Module.load (module.js:494:32)\r\n    at tryModuleLoad (module.js:453:12)\r\n    at Function.Module._load (module.js:445:3)\r\n    at Module.runMain (module.js:611:10)\r\n    at run (bootstrap_node.js:394:7)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"alveko"}}