{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/7118","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/7118/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/7118/comments","events_url":"https://api.github.com/repos/babel/babel/issues/7118/events","html_url":"https://github.com/babel/babel/issues/7118","id":284825813,"node_id":"MDU6SXNzdWUyODQ4MjU4MTM=","number":7118,"title":"[TypeScript]: Syntax error on \"export default interface\" syntax","user":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"labels":[{"id":561589309,"node_id":"MDU6TGFiZWw1NjE1ODkzMDk=","url":"https://api.github.com/repos/babel/babel/labels/area:%20typescript","name":"area: typescript","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2017-12-28T01:55:41Z","updated_at":"2018-07-31T08:38:08Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Choose one: is this a bug report or feature request?\r\n**Bug report.**\r\n\r\n### Input Code\r\n```js\r\nexport default interface A {}\r\n```\r\n\r\n[Parse error in Babel repl](http://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=KYDwDg9gTgLgBAE2AMwIYFcA28CWA7GYKNAY2DgEE4BvAXyA&debug=false&circleciRepo=&evaluate=true&lineWrap=false&presets=es2015%2Ces2016%2Ces2017%2Creact%2Cstage-0%2Cstage-1%2Cstage-2%2Cstage-3%2Ces2015-loose%2Ctypescript&prettier=true&targets=Node-8&version=7.0.0-beta.36)\r\n[Works in TypeScript repl](https://www.typescriptlang.org/play/index.html#src=export%20default%20interface%20A%20%7B%7D)\r\n\r\n\r\n### Babel/Babylon Configuration (.babelrc, package.json, cli command)\r\n7.0.0-beta.35 repl with TypeScript transform enabled.\r\n\r\n### Expected Behavior\r\nThe syntax was added in https://github.com/Microsoft/TypeScript/pull/16040, so Babel should accept it (and no code should be emitted since it's a type export).\r\n\r\n### Current Behavior\r\nBabylon gives a parse error saying it's an unexpected token.\r\n\r\n### Possible Solution\r\nProbably something similar to #7075 😄\r\n\r\n### Context\r\nI have a TypeScript project that I'm trying to run through a custom fork of Babylon, and it's hitting an error on that syntax.\r\n\r\n### Your Environment\r\n\r\n| software         | version(s)\r\n| ---------------- | -------\r\n| Babel            |  master\r\n| Babylon          | master (from the last week or so)\r\n| node             | 9.2.0\r\n| npm              | yarn 1.3.2\r\n| Operating System | macOS 10.13.2\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/409142257","html_url":"https://github.com/babel/babel/issues/7118#issuecomment-409142257","issue_url":"https://api.github.com/repos/babel/babel/issues/7118","id":409142257,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTE0MjI1Nw==","user":{"login":"devdoomari3","id":41351197,"node_id":"MDQ6VXNlcjQxMzUxMTk3","avatar_url":"https://avatars1.githubusercontent.com/u/41351197?v=4","gravatar_id":"","url":"https://api.github.com/users/devdoomari3","html_url":"https://github.com/devdoomari3","followers_url":"https://api.github.com/users/devdoomari3/followers","following_url":"https://api.github.com/users/devdoomari3/following{/other_user}","gists_url":"https://api.github.com/users/devdoomari3/gists{/gist_id}","starred_url":"https://api.github.com/users/devdoomari3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devdoomari3/subscriptions","organizations_url":"https://api.github.com/users/devdoomari3/orgs","repos_url":"https://api.github.com/users/devdoomari3/repos","events_url":"https://api.github.com/users/devdoomari3/events{/privacy}","received_events_url":"https://api.github.com/users/devdoomari3/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T08:38:08Z","updated_at":"2018-07-31T08:38:08Z","author_association":"NONE","body":"@eventualbuddha are you going to submit a PR? (plz do)\r\n\r\nbtw, @Kovensky reading your comments, I don't think the discussion led to anything except noise. Discussions about typescript syntax right/wrong should happen on a typescript github-issues page. \r\n\r\nPlease don't surprise any user by differing from what the current TS compiler would do. Users don't care about whether that TS syntax is right/wrong, is standard/not.\r\n\r\nPS: come to think about it... wouldn't using typescript transpiler API solve 99% of the issue related to ```@babel/plugin-transform-typescript``` ?\r\n\r\nOr is there something more to babel-ecosystem?"}}
{"actor":{"display_login":"devdoomari3"}}