My name is Samuel Braun, I am 22 and from Germany. I absolutely love learning and sharing knowledge about web development, especially in the frontend field which is why I made this account ✋
Im not too sure what you are looking for, but here is how you could use namespaces and modules to structure your code:
api.js
/**
* @namespace backend
*//**
* @module api
* @memberof backend
*//**
* A function in the api.js file.
* @function someFunction
* @memberof module:api
*/functionsomeFunction(){// your code here}/**
* A variable in the api.js file.
* @var {number} someVariable
* @memberof module:api
*/constsomeVariable=123;
cache.js
/**
* @module cache
* @memberof backend
*//**
* A function in the cache.js file.
* @function anotherFunction
* @memberof module:cache
*/functionanotherFunction(){// your code here}
anywhereElse.js
/**
* This function does something with {@link module:api.someFunction}.
*/functionyetAnotherFunction(){// your code here}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I can't find any documentation about linking namespaces modules memberof etc etc.
I'm looking for examples with a hierarchy.
eg.
backend/logic/api.js (with methods and variables)
backend/logic/cache.js
How do I set this up?
namespace: backend ?
module: logic?
api: memberof logic?
functions in api.js memberof api ?
I have no clue how to organise this and on top of that @link syntax is so confusing (and doesn't work most of the time)
Im not too sure what you are looking for, but here is how you could use namespaces and modules to structure your code:
api.js
cache.js
anywhereElse.js