{"action":"created","issue":{"url":"https://api.github.com/repos/fabiandev/ts-runtime/issues/15","repository_url":"https://api.github.com/repos/fabiandev/ts-runtime","labels_url":"https://api.github.com/repos/fabiandev/ts-runtime/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/fabiandev/ts-runtime/issues/15/comments","events_url":"https://api.github.com/repos/fabiandev/ts-runtime/issues/15/events","html_url":"https://github.com/fabiandev/ts-runtime/issues/15","id":304272777,"number":15,"title":"Unable to Generate d.ts Declaration Files ","user":{"login":"cryptokat","id":32390172,"avatar_url":"https://avatars1.githubusercontent.com/u/32390172?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptokat","html_url":"https://github.com/cryptokat","followers_url":"https://api.github.com/users/cryptokat/followers","following_url":"https://api.github.com/users/cryptokat/following{/other_user}","gists_url":"https://api.github.com/users/cryptokat/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptokat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptokat/subscriptions","organizations_url":"https://api.github.com/users/cryptokat/orgs","repos_url":"https://api.github.com/users/cryptokat/repos","events_url":"https://api.github.com/users/cryptokat/events{/privacy}","received_events_url":"https://api.github.com/users/cryptokat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-12T08:05:01Z","updated_at":"2018-03-12T08:05:22Z","closed_at":null,"author_association":"NONE","body":"Demo project: https://github.com/cryptokat/ts-runtime-issue/\r\n\r\n`Hash.d.ts` file is missing due to the error of TS4070 and TS4052\r\n\r\n```\r\nyarn build-tsr --force\r\nyarn run v1.5.1\r\n$ yarn tsr Hash.ts -c tsconfig.json --force\r\nℹ ts-runtime v0.1.35\r\n✔ Processing (184ms)\r\n✔ Scanning (13ms)\r\n✔ Transforming (14ms)\r\n✖ Hash.ts(5,31): error TS4070: Parameter 'input' of public static method from exported class has or is using private name 'Uint8Array'.\r\n✖ Hash.ts(5,44): error TS4052: Return type of public static method from exported class has or is using private name 'Uint8Array'.\r\n✔ Emitting (287ms)\r\n✔ Done in 498ms, but there were 2 compiler diagnostics.\r\nDone in 1.29s.\r\n```\r\n\r\n#### Problematic Code\r\n\r\n```\r\nexport default class Hash {\r\n    public static h256(input : Uint8Array) : Uint8Array {\r\n        return new Uint8Array(0);\r\n    }\r\n}\r\n```\r\n\r\n#### Normal Code\r\n\r\n```\r\nexport default class Hash {\r\n    private h256(input : Uint8Array) : Uint8Array {\r\n        return new Uint8Array(0);\r\n    }\r\n}\r\n```\r\n\r\n```\r\nexport default class Hash {\r\n    public static h256(input : string) : string {\r\n        return \"\";\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/fabiandev/ts-runtime/issues/comments/372222894","html_url":"https://github.com/fabiandev/ts-runtime/issues/15#issuecomment-372222894","issue_url":"https://api.github.com/repos/fabiandev/ts-runtime/issues/15","id":372222894,"user":{"login":"cryptokat","id":32390172,"avatar_url":"https://avatars1.githubusercontent.com/u/32390172?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptokat","html_url":"https://github.com/cryptokat","followers_url":"https://api.github.com/users/cryptokat/followers","following_url":"https://api.github.com/users/cryptokat/following{/other_user}","gists_url":"https://api.github.com/users/cryptokat/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptokat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptokat/subscriptions","organizations_url":"https://api.github.com/users/cryptokat/orgs","repos_url":"https://api.github.com/users/cryptokat/repos","events_url":"https://api.github.com/users/cryptokat/events{/privacy}","received_events_url":"https://api.github.com/users/cryptokat/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T08:05:22Z","updated_at":"2018-03-12T08:05:22Z","author_association":"NONE","body":"related to #6 "}}
{"actor":{"display_login":"cryptokat"}}