{"action":"opened","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/281","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/281/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/281/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/281","id":93513634,"number":281,"title":"[TypeScript] Enum declared inside class cannot be used","user":{"login":"LeonidVeriga","id":11466613,"avatar_url":"https://avatars.githubusercontent.com/u/11466613?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonidVeriga","html_url":"https://github.com/LeonidVeriga","followers_url":"https://api.github.com/users/LeonidVeriga/followers","following_url":"https://api.github.com/users/LeonidVeriga/following{/other_user}","gists_url":"https://api.github.com/users/LeonidVeriga/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonidVeriga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonidVeriga/subscriptions","organizations_url":"https://api.github.com/users/LeonidVeriga/orgs","repos_url":"https://api.github.com/users/LeonidVeriga/repos","events_url":"https://api.github.com/users/LeonidVeriga/events{/privacy}","received_events_url":"https://api.github.com/users/LeonidVeriga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T11:57:42Z","updated_at":"2015-07-07T11:57:42Z","closed_at":null,"body":"```C#\r\nusing Bridge;\r\n\r\nnamespace typeScriptTest\r\n{\r\n    class A\r\n    {\r\n        public enum EnumA { M1 }\r\n\r\n        public void DoSomething(EnumA m)\r\n        {\r\n\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nGenerated d.ts\r\n```JavaScript\r\ndeclare module typeScriptTest \r\n{\r\n    export interface A {\r\n        doSomething(m: typeScriptTest.A.EnumA): void;\r\n    }\r\n    export interface AFunc extends Function {\r\n        prototype: A;\r\n        new (): A;\r\n    }\r\n    var A: AFunc;\r\n\r\n    export enum EnumA {\r\n        m1 = 0\r\n    }\r\n\r\n}\r\n```\r\n\r\nError is at line `doSomething(m: typeScriptTest.A.EnumA): void;`\r\n - The property `A` does not exist on value of type `typeScriptTest`.\r\n\r\nI.e. `EnumA` is rendered inside module `typeScriptTest` and not inside interface `A`.\r\nThe following code would work `doSomething(m: typeScriptTest.EnumA): void;`\r\n"}}