{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1152","labels_url":"https://api.github.com/repos/babel/babel/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1152/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1152/events","html_url":"https://github.com/babel/babel/issues/1152","id":66216397,"number":1152,"title":"Support TS / flow type assertions","user":{"login":"Arnavion","id":1096010,"avatar_url":"https://avatars.githubusercontent.com/u/1096010?v=3","gravatar_id":"","url":"https://api.github.com/users/Arnavion","html_url":"https://github.com/Arnavion","followers_url":"https://api.github.com/users/Arnavion/followers","following_url":"https://api.github.com/users/Arnavion/following{/other_user}","gists_url":"https://api.github.com/users/Arnavion/gists{/gist_id}","starred_url":"https://api.github.com/users/Arnavion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arnavion/subscriptions","organizations_url":"https://api.github.com/users/Arnavion/orgs","repos_url":"https://api.github.com/users/Arnavion/repos","events_url":"https://api.github.com/users/Arnavion/events{/privacy}","received_events_url":"https://api.github.com/users/Arnavion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T19:42:56Z","updated_at":"2015-04-03T19:51:33Z","closed_at":null,"body":"The `<T>` syntax before an expression asserts that the expression is of type T (somewhat like typecasts in other languages, but no runtime behavior).\r\n\r\n```javascript\r\nvar x: string | string[];\r\nif (Array.isArray(x)) {\r\n    console.log((<string[]>x).length);\r\n}\r\n```\r\n\r\nShould be stripped unless `flow` is blacklisted."},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/89405743","html_url":"https://github.com/babel/babel/issues/1152#issuecomment-89405743","issue_url":"https://api.github.com/repos/babel/babel/issues/1152","id":89405743,"user":{"login":"sebmck","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/sebmck","html_url":"https://github.com/sebmck","followers_url":"https://api.github.com/users/sebmck/followers","following_url":"https://api.github.com/users/sebmck/following{/other_user}","gists_url":"https://api.github.com/users/sebmck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmck/subscriptions","organizations_url":"https://api.github.com/users/sebmck/orgs","repos_url":"https://api.github.com/users/sebmck/repos","events_url":"https://api.github.com/users/sebmck/events{/privacy}","received_events_url":"https://api.github.com/users/sebmck/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T19:51:33Z","updated_at":"2015-04-03T19:51:33Z","body":"I don't think flow has these. It's syntactically ambiguous to JSX. See\nhttp://flowtype.org/blog/2015/02/18/Typecasts.html\n\nOn Saturday, 4 April 2015, Arnav Singh <notifications@github.com> wrote:\n\n> The <T> syntax before an expression asserts that the expression is of\n> type T (somewhat like typecasts in other languages, but no runtime\n> behavior).\n>\n> var x: string | string[];if (Array.isArray(x)) {\n>     console.log((<string[]>x).length);\n> }\n>\n> Should be stripped unless flow is blacklisted.\n>\n> --\n> Reply to this email directly or view it on GitHub\n> <https://github.com/babel/babel/issues/1152>.\n>\n\n\n-- \nSebastian McKenzie\n"}}