I see your point. When talking about Lua this is a good dev tool.
Since my target is TypeScript i need to add some more declarations. Like having an object of type eg. WowFrame.
See this picture of the qhun-core-ts framework in Visual Studio Code. And the declarations of the API will work in every IDE that understands TypeScript (there are a lot).
![](https://www.wowinterface.com/forums/attachment.php?attachmentid=9174&stc=1&d=1541790871)