{"action":"created","issue":{"url":"https://api.github.com/repos/angular/clutz/issues/131","labels_url":"https://api.github.com/repos/angular/clutz/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/angular/clutz/issues/131/comments","events_url":"https://api.github.com/repos/angular/clutz/issues/131/events","html_url":"https://github.com/angular/clutz/issues/131","id":114242765,"number":131,"title":"Don't emit private fields in .d.ts","user":{"login":"mprobst","id":7208,"avatar_url":"https://avatars.githubusercontent.com/u/7208?v=3","gravatar_id":"","url":"https://api.github.com/users/mprobst","html_url":"https://github.com/mprobst","followers_url":"https://api.github.com/users/mprobst/followers","following_url":"https://api.github.com/users/mprobst/following{/other_user}","gists_url":"https://api.github.com/users/mprobst/gists{/gist_id}","starred_url":"https://api.github.com/users/mprobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprobst/subscriptions","organizations_url":"https://api.github.com/users/mprobst/orgs","repos_url":"https://api.github.com/users/mprobst/repos","events_url":"https://api.github.com/users/mprobst/events{/privacy}","received_events_url":"https://api.github.com/users/mprobst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rkirov","id":95713,"avatar_url":"https://avatars.githubusercontent.com/u/95713?v=3","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-30T10:30:12Z","updated_at":"2015-10-31T01:16:17Z","closed_at":null,"body":"We could skip emitting private fields in `.d.ts` files. This allows better caching in build systems, but could also reduce the number of potentially problematic \"overridden static field as wrong type\" issues.\r\n\r\nWe should still emit a `private noStructuralTyping_: any;` field for every Closure `class`, to make sure classes don't accidentally get type compatible where they should not."},"comment":{"url":"https://api.github.com/repos/angular/clutz/issues/comments/152683013","html_url":"https://github.com/angular/clutz/issues/131#issuecomment-152683013","issue_url":"https://api.github.com/repos/angular/clutz/issues/131","id":152683013,"user":{"login":"rkirov","id":95713,"avatar_url":"https://avatars.githubusercontent.com/u/95713?v=3","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T01:16:17Z","updated_at":"2015-10-31T01:16:17Z","body":"We already skip private properties, for example:\r\n\r\nhttps://github.com/angular/clutz/blob/f97f4b01219b50959cf1115ea4615a1c8b7cf2ae/src/test/java/com/google/javascript/clutz/fn_params.js#L36\r\n\r\nand the output\r\n\r\nhttps://github.com/angular/clutz/blob/f97f4b01219b50959cf1115ea4615a1c8b7cf2ae/src/test/java/com/google/javascript/clutz/fn_params.d.ts\r\n\r\nnoStructuralTyping for ones with private is good idea, so keeping the issue open."}}