{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/27362","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/27362/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/27362/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/27362/events","html_url":"https://github.com/Microsoft/TypeScript/issues/27362","id":363923574,"node_id":"MDU6SXNzdWUzNjM5MjM1NzQ=","number":27362,"title":"transform ts to java","user":{"login":"whu-iss-jack","id":11594178,"node_id":"MDQ6VXNlcjExNTk0MTc4","avatar_url":"https://avatars3.githubusercontent.com/u/11594178?v=4","gravatar_id":"","url":"https://api.github.com/users/whu-iss-jack","html_url":"https://github.com/whu-iss-jack","followers_url":"https://api.github.com/users/whu-iss-jack/followers","following_url":"https://api.github.com/users/whu-iss-jack/following{/other_user}","gists_url":"https://api.github.com/users/whu-iss-jack/gists{/gist_id}","starred_url":"https://api.github.com/users/whu-iss-jack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whu-iss-jack/subscriptions","organizations_url":"https://api.github.com/users/whu-iss-jack/orgs","repos_url":"https://api.github.com/users/whu-iss-jack/repos","events_url":"https://api.github.com/users/whu-iss-jack/events{/privacy}","received_events_url":"https://api.github.com/users/whu-iss-jack/received_events","type":"User","site_admin":false},"labels":[{"id":117630923,"node_id":"MDU6TGFiZWwxMTc2MzA5MjM=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Out%20of%20Scope","name":"Out of Scope","color":"556677","default":false},{"id":113971155,"node_id":"MDU6TGFiZWwxMTM5NzExNTU=","url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-26T08:58:29Z","updated_at":"2018-10-08T17:52:57Z","closed_at":"2018-10-08T17:52:57Z","author_association":"NONE","body":"<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the \"Common Feature Requests\" section.\r\n\r\n-->\r\n\r\n## Search Terms\r\n\r\n<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->\r\n\r\n## Suggestion\r\n\r\n<!-- A summary of what you'd like to see added or changed -->\r\n\r\n## Use Cases\r\n\r\nClient and Server communication often need a common message protocal, like `protobuf`, it can generate message struct types for different languages.  Now I write those message types in typescript first, and like to transform them to another language like Java.  I need typescript to provide language service api like type information, thus I can write code to transform and generate Java code automatically \r\n\r\n## Examples\r\n\r\nmessage.ts\r\n```ts\r\ninterface IUserInfo {\r\n    name: string;\r\n    age: number;\r\n    level: 'small' | 'big';\r\n}\r\n```\r\nmessage.java\r\n```java\r\n\r\nenum Level {\r\n    small,\r\n    big\r\n}\r\n\r\nclass IUserInfo {\r\n    public String name;\r\n    public double age;\r\n    public Level level;\r\n}\r\n```\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n* [ ] This wouldn't be a breaking change in existing TypeScript / JavaScript code\r\n* [ ] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [ ] This could be implemented without emitting different JS based on the types of the expressions\r\n* [ ] This isn't a runtime feature (e.g. new expression-level syntax)\r\n\r\n"}}
{"actor":{"display_login":"RyanCavanaugh"}}