{"action":"created","issue":{"url":"https://api.github.com/repos/cskeppstedt/t4ts/issues/51","labels_url":"https://api.github.com/repos/cskeppstedt/t4ts/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/cskeppstedt/t4ts/issues/51/comments","events_url":"https://api.github.com/repos/cskeppstedt/t4ts/issues/51/events","html_url":"https://github.com/cskeppstedt/t4ts/pull/51","id":79983629,"number":51,"title":"Inheritance by existent external type","user":{"login":"leandroshan","id":1793764,"avatar_url":"https://avatars.githubusercontent.com/u/1793764?v=3","gravatar_id":"","url":"https://api.github.com/users/leandroshan","html_url":"https://github.com/leandroshan","followers_url":"https://api.github.com/users/leandroshan/followers","following_url":"https://api.github.com/users/leandroshan/following{/other_user}","gists_url":"https://api.github.com/users/leandroshan/gists{/gist_id}","starred_url":"https://api.github.com/users/leandroshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandroshan/subscriptions","organizations_url":"https://api.github.com/users/leandroshan/orgs","repos_url":"https://api.github.com/users/leandroshan/repos","events_url":"https://api.github.com/users/leandroshan/events{/privacy}","received_events_url":"https://api.github.com/users/leandroshan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-23T23:23:43Z","updated_at":"2015-11-06T20:15:48Z","closed_at":"2015-11-06T09:15:30Z","pull_request":{"url":"https://api.github.com/repos/cskeppstedt/t4ts/pulls/51","html_url":"https://github.com/cskeppstedt/t4ts/pull/51","diff_url":"https://github.com/cskeppstedt/t4ts/pull/51.diff","patch_url":"https://github.com/cskeppstedt/t4ts/pull/51.patch"},"body":"This will implement the use case of having an external module and type ex. \"externalJSModule,Entity\" that does not need to be created on .d.ts file, but it must extend some types in the current project.\r\n\r\nC#\r\n [TypeScriptInterface(Name = \"someEntity\", ExistentExternalTypeName = \"externalJSModule.Entity\")]\r\n    public class SomeEntity\r\n    {\r\n        public int Number { get; set; }\r\n        public string Name { get; set; }\r\n    }\r\n\r\n.D.TS generated\r\ndeclare module T4TS {\r\n    export interface someEntity extends externalJSModule.Entity {\r\n        Number: number;\r\n        Name: string;\r\n    }\r\n}\r\n\r\n// THIS ALREADY EXISTS SOMEWHERE IN THE APPLICATION \r\n// AND WILL NOT BE CREATED ON THE .D.TS FILES\r\ndeclare module externalJSModule {\r\n    interface Entity {\r\n     \r\n    }\r\n}\r\n\r\nThis is very useful when using breezejs for example where all my client models will automatically be breeze client entities.\r\n\r\nPlease, let me know if you like it and/or if there is a better way of doing it or if this is already supported somehow and I didn't see it.\r\n\r\nI have this working on my breeze project and it's great, I hope it can help others as well.\r\n\r\nThanks\r\nLeandro"},"comment":{"url":"https://api.github.com/repos/cskeppstedt/t4ts/issues/comments/154520659","html_url":"https://github.com/cskeppstedt/t4ts/pull/51#issuecomment-154520659","issue_url":"https://api.github.com/repos/cskeppstedt/t4ts/issues/51","id":154520659,"user":{"login":"leandroshan","id":1793764,"avatar_url":"https://avatars.githubusercontent.com/u/1793764?v=3","gravatar_id":"","url":"https://api.github.com/users/leandroshan","html_url":"https://github.com/leandroshan","followers_url":"https://api.github.com/users/leandroshan/followers","following_url":"https://api.github.com/users/leandroshan/following{/other_user}","gists_url":"https://api.github.com/users/leandroshan/gists{/gist_id}","starred_url":"https://api.github.com/users/leandroshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandroshan/subscriptions","organizations_url":"https://api.github.com/users/leandroshan/orgs","repos_url":"https://api.github.com/users/leandroshan/repos","events_url":"https://api.github.com/users/leandroshan/events{/privacy}","received_events_url":"https://api.github.com/users/leandroshan/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T20:15:48Z","updated_at":"2015-11-06T20:15:48Z","body":"Very nice !!!! congrats on the good job with this library, it helps a lot !\r\n"}}