Sometimes I structure my modules such that a particular set of functionality is encapsulated in a sub-module:
index.js:
const submodule = require('./submodule');
exports.submodule = submodule;
submodule.js:
exports.foo = function() {};
Is there some way in JSDoc to indicate that submodule is a child module of the main module? If I use the @module annotation then it can't have a parent if I understand correctly. What's the best way to document this type of code structure?
Ideally I'd like it to kick out documentation kinda like =>
- index
- index.submodule
- .foo()
I hope I'm making sense.
Or maybe I'm not doing things correctly? Any help would be much appreciated!