CodeGeneration: Added inheritance support for intellisense (#495)

* New feature added #495.
* Works for both TypeScript and JavaScript.