jumpinjackie / jsdoc-typescript-plugin

Experimental JSDoc plugin to generate TypeScript definition files (.d.ts) from JSDoc-annotated source
34 stars 7 forks source link

Global module aliases #47

Closed jumpinjackie closed 8 years ago

jumpinjackie commented 8 years ago

In the case of Cesium.js, I've been encountering cases where <anonymous> is being treated as a module. It looks and sounds like an alias for something that should be put in the global module namespace, but I've yet to find confirmation that this is the case.

So in the case that this is not a special identifier emitted by JSDoc, our intention is to put anything under <anonymous> into the global namespace anyway for Cesium.js, so the plugin should have a means of treating <anonymous> or any other module name as being global.