backspaces / agentscript

An Agent Based Modeling system (ABM)
http://backspaces.github.io/agentscript/
GNU General Public License v3.0
107 stars 14 forks source link

Use jsDoc plugin to enable export default <class Foo> #33

Closed backspaces closed 3 years ago

backspaces commented 3 years ago

jsDoc does not allow export default to be used directly on the object within the module where it is defined.

Instead the object has to be declared without the export default and a single separate export used:

export default Foo

Use a jsDoc plugin such as https://github.com/ckeditor/ckeditor5-dev to correct this.

backspaces commented 3 years ago

See this for details: https://github.com/jsdoc/jsdoc/issues/1132

backspaces commented 3 years ago

Yay! Documentation.js removes this problem. Closing.