documentation
documentation copied to clipboard
Support export namespace
Support namespace exports in --document-exported
export * as Something from './file'
I have the same problem. just need to add exportNamespaceFrom in plugins list in https://github.com/documentationjs/documentation/blob/master/src/parsers/parse_to_ast.js
@ridergoster no, not only this should be added, --document-exported should support namespace exports too
As a workaround you could import the module you want documented as an alias. Then create a variable to be documented and export it.
For example:
import {thing as _thing} from './place';
/**
* Documentation for the thing
*/
export let thing = _thing;