jumpinjackie / jsdoc-typescript-plugin

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

Add support for specifying a list of modules as enums #52

Closed jumpinjackie closed 8 years ago

jumpinjackie commented 8 years ago

In the case of Cesium.js, enums are represented as modules. Due to the AMD nature of Cesium, it is not actually possible to describe an exported enum from an AMD module using JSDoc constructs (based on my googling @export and @enum cannot co-exist)

As a result, we'll need a manual configuration override that lets us specify what modules to treat as enums to workaround this limitation.